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 : 2929994 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 (4115984) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4115984) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896031 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4115984'] with mtr_portfolio_ids : ['28896031'] and first list_photo_ids : [] new path : /proc/2929994/ Name: python3 Umask: 0002 State: R (running) Tgid: 2929994 Ngid: 0 Pid: 2929994 PPid: 2929993 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2929994 NSpid: 2929994 NSpgid: 2928665 NSsid: 2928665 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97984 kB VmRSS: 97984 kB RssAnon: 59908 kB RssFile: 38076 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 83 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2929994', 'Ngid': '0', 'Pid': '2929994', 'PPid': '2929993', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2929994', 'NSpid': '2929994', 'NSpgid': '2928665', 'NSsid': '2928665', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97984 kB', 'VmRSS': '97984 kB', 'RssAnon': '59908 kB', 'RssFile': '38076 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '83'} ('datou_batch_current', '2929994', '1106908', '0', '1106884', '865636', '97984', b'', 'marlene', '4115984') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28896031) 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 (4115984 ) ) 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 (28896031) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396146286, 'portfolio_id': 28896031}, {'photo_id': 1396146285, 'portfolio_id': 28896031}, {'photo_id': 1396146282, 'portfolio_id': 28896031}, {'photo_id': 1396146279, 'portfolio_id': 28896031}, {'photo_id': 1396146276, 'portfolio_id': 28896031}, {'photo_id': 1396146274, 'portfolio_id': 28896031}, {'photo_id': 1396146272, 'portfolio_id': 28896031}, {'photo_id': 1396146271, 'portfolio_id': 28896031}, {'photo_id': 1396146221, 'portfolio_id': 28896031}, {'photo_id': 1396146216, 'portfolio_id': 28896031}, {'photo_id': 1396146142, 'portfolio_id': 28896031}, {'photo_id': 1396146111, 'portfolio_id': 28896031}, {'photo_id': 1396146067, 'portfolio_id': 28896031}, {'photo_id': 1396146036, 'portfolio_id': 28896031}, {'photo_id': 1396146004, 'portfolio_id': 28896031}, {'photo_id': 1396145904, 'portfolio_id': 28896031}, {'photo_id': 1396145875, 'portfolio_id': 28896031}, {'photo_id': 1396145872, 'portfolio_id': 28896031}, {'photo_id': 1396145869, 'portfolio_id': 28896031}, {'photo_id': 1396145750, 'portfolio_id': 28896031}, {'photo_id': 1396145626, 'portfolio_id': 28896031}, {'photo_id': 1396145592, 'portfolio_id': 28896031}, {'photo_id': 1396145559, 'portfolio_id': 28896031}, {'photo_id': 1396145527, 'portfolio_id': 28896031}, {'photo_id': 1396145371, 'portfolio_id': 28896031}, {'photo_id': 1396145313, 'portfolio_id': 28896031}, {'photo_id': 1396145238, 'portfolio_id': 28896031}, {'photo_id': 1396144833, 'portfolio_id': 28896031}, {'photo_id': 1396144799, 'portfolio_id': 28896031}, {'photo_id': 1396144770, 'portfolio_id': 28896031}, {'photo_id': 1396144743, 'portfolio_id': 28896031}, {'photo_id': 1396144716, 'portfolio_id': 28896031}, {'photo_id': 1396144689, 'portfolio_id': 28896031}, {'photo_id': 1396144302, 'portfolio_id': 28896031}, {'photo_id': 1396144268, 'portfolio_id': 28896031}, {'photo_id': 1396144235, 'portfolio_id': 28896031}, {'photo_id': 1396144192, 'portfolio_id': 28896031}, {'photo_id': 1396144175, 'portfolio_id': 28896031}, {'photo_id': 1396144157, 'portfolio_id': 28896031}, {'photo_id': 1396144156, 'portfolio_id': 28896031}, {'photo_id': 1396144155, 'portfolio_id': 28896031}, {'photo_id': 1396144134, 'portfolio_id': 28896031}, {'photo_id': 1396144127, 'portfolio_id': 28896031}, {'photo_id': 1396144124, 'portfolio_id': 28896031}, {'photo_id': 1396144123, 'portfolio_id': 28896031}, {'photo_id': 1396144119, 'portfolio_id': 28896031}, {'photo_id': 1396144118, 'portfolio_id': 28896031}, {'photo_id': 1396144107, 'portfolio_id': 28896031}, {'photo_id': 1396144097, 'portfolio_id': 28896031}, {'photo_id': 1396144094, 'portfolio_id': 28896031}, {'photo_id': 1396144092, 'portfolio_id': 28896031}, {'photo_id': 1396144090, 'portfolio_id': 28896031}, {'photo_id': 1396144088, 'portfolio_id': 28896031}, {'photo_id': 1396144085, 'portfolio_id': 28896031}, {'photo_id': 1396144049, 'portfolio_id': 28896031}, {'photo_id': 1396144040, 'portfolio_id': 28896031}, {'photo_id': 1396144029, 'portfolio_id': 28896031}, {'photo_id': 1396144025, 'portfolio_id': 28896031}, {'photo_id': 1396144023, 'portfolio_id': 28896031}, {'photo_id': 1396143862, 'portfolio_id': 28896031}] map_portfolio_id_photo_id: {28896031: [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271, 1396146221, 1396146216, 1396146142, 1396146111, 1396146067, 1396146036, 1396146004, 1396145904, 1396145875, 1396145872, 1396145869, 1396145750, 1396145626, 1396145592, 1396145559, 1396145527, 1396145371, 1396145313, 1396145238, 1396144833, 1396144799, 1396144770, 1396144743, 1396144716, 1396144689, 1396144302, 1396144268, 1396144235, 1396144192, 1396144175, 1396144157, 1396144156, 1396144155, 1396144134, 1396144127, 1396144124, 1396144123, 1396144119, 1396144118, 1396144107, 1396144097, 1396144094, 1396144092, 1396144090, 1396144088, 1396144085, 1396144049, 1396144040, 1396144029, 1396144025, 1396144023, 1396143862]} ##### 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.01890707015991211 #### 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 Tue Nov 25 23:14:57 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 (28896031) 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 : 28896031 get user id for portfolio 28896031 get sub ptf for main ptf 28896031, type 3726 and hashtags ['mal_croppe', 'Teint_Dans_La_Masse', 'flou', 'metal', 'kraft', 'plastique', 'Carton_gris', 'autre_refus', 'papier', 'environnement', 'cartonnette', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28896031 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','flou','metal','kraft','plastique','Carton_gris','autre_refus','papier','environnement','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28896031 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','flou','metal','kraft','plastique','Carton_gris','autre_refus','papier','environnement','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 28896031, 'sub_port_id': 28896036, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618312, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'kraft': {'main_port_id': 28896031, 'sub_port_id': 28896037, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618313, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'plastique': {'main_port_id': 28896031, 'sub_port_id': 28896038, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618314, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'flou': {'main_port_id': 28896031, 'sub_port_id': 28896039, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618315, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'metal': {'main_port_id': 28896031, 'sub_port_id': 28896040, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618316, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'environnement': {'main_port_id': 28896031, 'sub_port_id': 28896041, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618317, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'Carton_brun': {'main_port_id': 28896031, 'sub_port_id': 28896042, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618318, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'cartonnette': {'main_port_id': 28896031, 'sub_port_id': 28896043, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618319, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28896031, 'sub_port_id': 28896044, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618320, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'autre_refus': {'main_port_id': 28896031, 'sub_port_id': 28896045, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618321, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'mal_croppe': {'main_port_id': 28896031, 'sub_port_id': 28896046, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618322, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}, 'Carton_gris': {'main_port_id': 28896031, 'sub_port_id': 28896047, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618323, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28896036 , 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=28896031 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 (28896036) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896037 , 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=28896031 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 (28896037) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896038 , 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=28896031 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 (28896038) result : ((1396145717,), (1396146265,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896039 , 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=28896031 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 (28896039) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896040 , 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=28896031 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 (28896040) result : ((1396146266,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896041 , 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=28896031 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 (28896041) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896042 , 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=28896031 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 (28896042) result : ((1396145098,), (1396145100,), (1396145711,), (1396145712,), (1396145713,), (1396145714,), (1396145715,), (1396145833,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896043 , 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=28896031 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 (28896043) result : ((1396145088,), (1396145710,), (1396145824,), (1396146114,), (1396146115,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896044 , 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=28896031 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 (28896044) result : ((1396145063,), (1396145065,), (1396145703,), (1396145704,), (1396145816,), (1396146287,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896045 , 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=28896031 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 (28896045) result : ((1396145705,), (1396146288,), (1396146289,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896046 , 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=28896031 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 (28896046) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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 28896047 , 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=28896031 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 (28896047) result : ((1396145077,), (1396145079,), (1396145706,), (1396145707,), (1396145708,), (1396146112,), (1396146113,), (1396146264,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28896031) result : ((1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) 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`=28896031 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','flou','metal','kraft','plastique','Carton_gris','autre_refus','papier','environnement','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28896031 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','flou','metal','kraft','plastique','Carton_gris','autre_refus','papier','environnement','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 28896031, 'sub_port_id': 28896048, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618324, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'kraft': {'main_port_id': 28896031, 'sub_port_id': 28896049, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618325, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'plastique': {'main_port_id': 28896031, 'sub_port_id': 28896050, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618326, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'flou': {'main_port_id': 28896031, 'sub_port_id': 28896051, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618327, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'metal': {'main_port_id': 28896031, 'sub_port_id': 28896052, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618328, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'environnement': {'main_port_id': 28896031, 'sub_port_id': 28896053, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618329, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'Carton_brun': {'main_port_id': 28896031, 'sub_port_id': 28896054, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618330, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'cartonnette': {'main_port_id': 28896031, 'sub_port_id': 28896055, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618331, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 28896031, 'sub_port_id': 28896056, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618332, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'autre_refus': {'main_port_id': 28896031, 'sub_port_id': 28896057, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618333, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'mal_croppe': {'main_port_id': 28896031, 'sub_port_id': 28896058, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618334, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}, 'Carton_gris': {'main_port_id': 28896031, 'sub_port_id': 28896059, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19618335, 'last_updated_at': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 25, 23, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 25, 23, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896049,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896050,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896051,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896052,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896053,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896054,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896055,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896056,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896057,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896045 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896058,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896046 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28896059,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28896047 lien utilise dans velours : https://marlene.fotonower.com/velours/28896048,28896049,28896050,28896051,28896052,28896053,28896054,28896055,28896056,28896057,28896058,28896059?tags=papier,kraft,plastique,flou,metal,environnement,Carton_brun,cartonnette,Teint_Dans_La_Masse,autre_refus,mal_croppe,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28896031]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] map_info['map_portfolio_photo'] : {28896031: [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271, 1396146221, 1396146216, 1396146142, 1396146111, 1396146067, 1396146036, 1396146004, 1396145904, 1396145875, 1396145872, 1396145869, 1396145750, 1396145626, 1396145592, 1396145559, 1396145527, 1396145371, 1396145313, 1396145238, 1396144833, 1396144799, 1396144770, 1396144743, 1396144716, 1396144689, 1396144302, 1396144268, 1396144235, 1396144192, 1396144175, 1396144157, 1396144156, 1396144155, 1396144134, 1396144127, 1396144124, 1396144123, 1396144119, 1396144118, 1396144107, 1396144097, 1396144094, 1396144092, 1396144090, 1396144088, 1396144085, 1396144049, 1396144040, 1396144029, 1396144025, 1396144023, 1396143862]} final : False mtd_id 4302 list_pids : [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] Looping around the photos to save general results len do output : 1 /28896031. 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, '4115984') ('4302', '28896031', '1396146286', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28896031', "{'papier': 28896036, 'kraft': 28896037, 'plastique': 28896038, 'flou': 28896039, 'metal': 28896040, 'environnement': 28896041, 'Carton_brun': 28896042, 'cartonnette': 28896043, 'Teint_Dans_La_Masse': 28896044, 'autre_refus': 28896045, 'mal_croppe': 28896046, 'Carton_gris': 28896047}", None, None, None, None, '4115984'), ('4302', '28896031', '1396146286', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984')] time used for this insertion : 0.016489505767822266 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8937609195709229 time spend to save output : 0.016817331314086914 total time spend for step 1 : 1.9105782508850098 step2:final Tue Nov 25 23:14: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 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 (28896031) 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 28896031 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396143862,1396144049,1396144119,1396144040,1396144118,1396144029,1396144107,1396144025,1396144097,1396144023,1396144094,1396144092,1396144090,1396144088,1396144085,1396144134,1396144127,1396144124,1396144123,1396144157,1396144156,1396144155,1396144302,1396144268,1396144235,1396144192,1396144175,1396144833,1396144799,1396144770,1396144743,1396144716,1396144689,1396145371,1396145313,1396145238,1396145626,1396145592,1396145559,1396145527,1396145904,1396145750,1396145875,1396145872,1396145869,1396146142,1396146111,1396146067,1396146036,1396146004,1396146221,1396146286,1396146216,1396146285,1396146282,1396146279,1396146276,1396146274,1396146272,1396146271); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28896031]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} new output for save of step final : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] map_info['map_portfolio_photo'] : {28896031: [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271, 1396146221, 1396146216, 1396146142, 1396146111, 1396146067, 1396146036, 1396146004, 1396145904, 1396145875, 1396145872, 1396145869, 1396145750, 1396145626, 1396145592, 1396145559, 1396145527, 1396145371, 1396145313, 1396145238, 1396144833, 1396144799, 1396144770, 1396144743, 1396144716, 1396144689, 1396144302, 1396144268, 1396144235, 1396144192, 1396144175, 1396144157, 1396144156, 1396144155, 1396144134, 1396144127, 1396144124, 1396144123, 1396144119, 1396144118, 1396144107, 1396144097, 1396144094, 1396144092, 1396144090, 1396144088, 1396144085, 1396144049, 1396144040, 1396144029, 1396144025, 1396144023, 1396143862]} final : False mtd_id 4302 list_pids : [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] Looping around the photos to save general results len do output : 8 /1396146286.Didn't retrieve data . /1396146285.Didn't retrieve data . /1396146282.Didn't retrieve data . /1396146279.Didn't retrieve data . /1396146276.Didn't retrieve data . /1396146274.Didn't retrieve data . /1396146272.Didn't retrieve data . /1396146271.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, '4115984') ('4302', '28896031', '1396146286', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '28896031', '1396146286', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146285', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146282', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146279', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146276', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146274', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146272', '0.05349155369761922', None, None, None, None, '4115984'), ('4302', '28896031', '1396146271', '0.05349155369761922', None, None, None, None, '4115984')] time used for this insertion : 0.0185701847076416 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08743834495544434 time spend to save output : 0.018983840942382812 total time spend for step 2 : 0.10642218589782715 step3:velours_tree Tue Nov 25 23:14: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 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 : {28896031: [{'papier': 28896036, 'kraft': 28896037, 'plastique': 28896038, 'flou': 28896039, 'metal': 28896040, 'environnement': 28896041, 'Carton_brun': 28896042, 'cartonnette': 28896043, 'Teint_Dans_La_Masse': 28896044, 'autre_refus': 28896045, 'mal_croppe': 28896046, 'Carton_gris': 28896047}]} input_args_next_step : {28896031: ()} output_args : {28896031: [{'papier': 28896036, 'kraft': 28896037, 'plastique': 28896038, 'flou': 28896039, 'metal': 28896040, 'environnement': 28896041, 'Carton_brun': 28896042, 'cartonnette': 28896043, 'Teint_Dans_La_Masse': 28896044, 'autre_refus': 28896045, 'mal_croppe': 28896046, 'Carton_gris': 28896047}]} args : 28896031 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 : ({'papier': 28896036, 'kraft': 28896037, 'plastique': 28896038, 'flou': 28896039, 'metal': 28896040, 'environnement': 28896041, 'Carton_brun': 28896042, 'cartonnette': 28896043, 'Teint_Dans_La_Masse': 28896044, 'autre_refus': 28896045, 'mal_croppe': 28896046, 'Carton_gris': 28896047},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28896031) 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([28896031]) 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.27812695503234863 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.27817630767822266 step4:send_mail_cod Tue Nov 25 23:14: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 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 : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} input_args_next_step : {1396146286: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146286 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146285 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146282 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146279 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146276 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146274 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146272 depend.output_id : 0 input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ()} output_args : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',)} args : 1396146271 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 : {28896031: [{'papier': 28896036, 'kraft': 28896037, 'plastique': 28896038, 'flou': 28896039, 'metal': 28896040, 'environnement': 28896041, 'Carton_brun': 28896042, 'cartonnette': 28896043, 'Teint_Dans_La_Masse': 28896044, 'autre_refus': 28896045, 'mal_croppe': 28896046, 'Carton_gris': 28896047}]} input_args_next_step : {1396146286: ('0.05349155369761922',), 1396146285: ('0.05349155369761922',), 1396146282: ('0.05349155369761922',), 1396146279: ('0.05349155369761922',), 1396146276: ('0.05349155369761922',), 1396146274: ('0.05349155369761922',), 1396146272: ('0.05349155369761922',), 1396146271: ('0.05349155369761922',), 28896031: ()} output_args : {28896031: [{'papier': 28896036, 'kraft': 28896037, 'plastique': 28896038, 'flou': 28896039, 'metal': 28896040, 'environnement': 28896041, 'Carton_brun': 28896042, 'cartonnette': 28896043, 'Teint_Dans_La_Masse': 28896044, 'autre_refus': 28896045, 'mal_croppe': 28896046, 'Carton_gris': 28896047}]} args : 28896031 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 :9, first value : ('0.05349155369761922',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28896031) 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_view ph WHERE photo_id IN (1396146286,1396146285,1396146282,1396146279,1396146276,1396146274,1396146272,1396146271) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396146271 begin to download photo : 1396146274 begin to download photo : 1396146279 begin to download photo : 1396146285 download finish for photo 1396146279 begin to download photo : 1396146282 download finish for photo 1396146271 begin to download photo : 1396146272 download finish for photo 1396146285 begin to download photo : 1396146286 download finish for photo 1396146274 begin to download photo : 1396146276 download finish for photo 1396146272 download finish for photo 1396146282 download finish for photo 1396146276 download finish for photo 1396146286 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette288960371764108900/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P28896031_25-11-2025_23_15_00.pdf 28896037 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896037 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288960371764108900 28896038 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896038 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396145717: '1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406888_0.png', 1396146265: '1764108746_2834300_1396143862_fc58e68e58286de5684505002fae1004_rle_crop_4045408693_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/f162b79aac70744181e2f5a8e4468ab1_47331148.png change filename to text .imagette288960381764108900/ imagette288960381764108900/1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406888_0.png.png imagette288960381764108900/1764108746_2834300_1396143862_fc58e68e58286de5684505002fae1004_rle_crop_4045408693_0.png.png imagette288960391764108900/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/7adbe58f4d3a5184b8cf31c1ee1fa1cd_7272207.png imagette288960381764108900 28896039 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288960391764108900 28896040 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396146266: '1764108746_2834300_1396143862_fc58e68e58286de5684505002fae1004_rle_crop_4045408685_0.png'} change filename to text .imagette288960401764108900/ imagette288960401764108900/1764108746_2834300_1396143862_fc58e68e58286de5684505002fae1004_rle_crop_4045408685_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/e9ce59033669ffb33fc445b81bd19f08_83591162.png imagette288960401764108900 28896043 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396145088: '1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406562_0.png', 1396145710: '1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406887_0.png', 1396145824: '1764108565_2828621_1396144156_9e55ecd82c5f9fbbf624a3b0b04cfae2_rle_crop_4045407021_0.png', 1396146114: '1764108667_2831133_1396145313_305937e136a73cb111a5e8a43d43072b_rle_crop_4045408376_0.png', 1396146115: '1764108667_2831133_1396145238_05b835f0368bfc30ff2fd8d6e62f3947_rle_crop_4045408389_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/b6fdbac7ed5039db332db64c9532e46e_95760603.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/41619ece6abe23a73e1d979e80dee120_26266704.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/602527c7830ba574d638fb6e29e61457_41999697.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/e929b064619d291cff19760d01d5a121_16944891.png change filename to text .imagette288960431764108900/ imagette288960431764108900/1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406887_0.png.png imagette288960431764108900/1764108565_2828621_1396144156_9e55ecd82c5f9fbbf624a3b0b04cfae2_rle_crop_4045407021_0.png.png imagette288960431764108900/1764108667_2831133_1396145313_305937e136a73cb111a5e8a43d43072b_rle_crop_4045408376_0.png.png imagette288960431764108900/1764108667_2831133_1396145238_05b835f0368bfc30ff2fd8d6e62f3947_rle_crop_4045408389_0.png.png imagette288960431764108900/1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406562_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/867a087a65db6d066fa6fe0e56a9bd58_88180151.png imagette288960431764108900 28896045 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396145705: '1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406939_0.png', 1396146288: '1764108786_2835264_1396145527_2916a2688ec11ace66003ba1e43a2016_rle_crop_4045411754_0.png', 1396146289: '1764108786_2835264_1396145527_2916a2688ec11ace66003ba1e43a2016_rle_crop_4045411756_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/b99c0aaf2b4d4ac9548178d71c3c4442_37187402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/1bedfea58f48876224f54cd3ae1f56bd_28942675.png change filename to text .imagette288960451764108900/ imagette288960451764108900/1764108786_2835264_1396145527_2916a2688ec11ace66003ba1e43a2016_rle_crop_4045411756_0.png.png imagette288960451764108900/1764108786_2835264_1396145527_2916a2688ec11ace66003ba1e43a2016_rle_crop_4045411754_0.png.png imagette288960451764108900/1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406939_0.png.png imagette288960461764108901/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/59daf94d8af43b87c2e78d9c040d8a9f_12754854.png imagette288960451764108900 28896046 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896046 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288960461764108901 28896042 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396145098: '1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406557_0.png', 1396145100: '1764108425_2824856_1396144085_c32ae529a296bb11d7b551e33f37a044_rle_crop_4045406651_0.png', 1396145711: '1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406895_0.png', 1396145712: '1764108547_2828258_1396144192_9a0585334e81005cc97d76ca2774516f_rle_crop_4045406923_0.png', 1396145713: '1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406938_0.png', 1396145714: '1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406937_0.png', 1396145715: '1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406940_0.png', 1396145833: '1764108565_2828621_1396144156_9e55ecd82c5f9fbbf624a3b0b04cfae2_rle_crop_4045407025_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/475a83a567f6eac0db5f103850aa1af6_26140927.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/2cad64261c6499c91e5a0d5e2641761c_26994131.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/c40c231be1e4f9f511fceab63011586a_38649219.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/ac496e2c6f9d3634e279efc85246316b_21760720.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/69a98afbdf142e53aef324d308e89164_66513891.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/21eb46f08dd2264710ed48659be179ac_12748057.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/b41f9d6529697e1bd958bf32621cf4ac_57476691.png change filename to text .imagette288960421764108901/ imagette288960421764108901/1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406557_0.png.png imagette288960421764108901/1764108547_2828258_1396144192_9a0585334e81005cc97d76ca2774516f_rle_crop_4045406923_0.png.png imagette288960421764108901/1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406938_0.png.png imagette288960421764108901/1764108565_2828621_1396144156_9e55ecd82c5f9fbbf624a3b0b04cfae2_rle_crop_4045407025_0.png.png imagette288960421764108901/1764108425_2824856_1396144085_c32ae529a296bb11d7b551e33f37a044_rle_crop_4045406651_0.png.png imagette288960421764108901/1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406895_0.png.png imagette288960421764108901/1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406937_0.png.png imagette288960421764108901/1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406940_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/effa9b53743812393883b6ad9f9c21b4_57634323.png imagette288960421764108901 28896044 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896044 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396145063: '1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406561_0.png', 1396145065: '1764108425_2824856_1396144088_0f6c8d5ad504c93c9372cf417c606005_rle_crop_4045406617_0.png', 1396145703: '1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406900_0.png', 1396145704: '1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406941_0.png', 1396145816: '1764108565_2828621_1396144302_eb4326e203a3e69d4aa2dee323a18df4_rle_crop_4045407015_0.png', 1396146287: '1764108786_2835264_1396145559_6b4bec239522e9f734913b3c95499799_rle_crop_4045411750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/5e2af58b147e4719bd7e986302280d9c_75678687.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/aa0a0cb5d72cd96b502455fe930eb8aa_44934770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/e78e971cf31fe7678b7e07eec1912993_12639151.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/2378d77a447fcbf51c5d1ec33fe2b00a_26592465.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/a0717e4b6105d58a0d6033347e9303cf_51130250.png change filename to text .imagette288960441764108901/ imagette288960441764108901/1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406561_0.png.png imagette288960441764108901/1764108786_2835264_1396145559_6b4bec239522e9f734913b3c95499799_rle_crop_4045411750_0.png.png imagette288960441764108901/1764108565_2828621_1396144302_eb4326e203a3e69d4aa2dee323a18df4_rle_crop_4045407015_0.png.png imagette288960441764108901/1764108547_2828258_1396144175_9a07983601f898c38b23a522d7adfe6a_rle_crop_4045406941_0.png.png imagette288960441764108901/1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406900_0.png.png imagette288960441764108901/1764108425_2824856_1396144088_0f6c8d5ad504c93c9372cf417c606005_rle_crop_4045406617_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/d5e5a3341558ce48c3b1f4bd3e5216aa_4939744.png imagette288960441764108901 28896047 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896047 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396145077: '1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406554_0.png', 1396145079: '1764108425_2824856_1396144085_c32ae529a296bb11d7b551e33f37a044_rle_crop_4045406648_0.png', 1396145706: '1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406886_0.png', 1396145707: '1764108547_2828258_1396144192_9a0585334e81005cc97d76ca2774516f_rle_crop_4045406919_0.png', 1396145708: '1764108547_2828258_1396144192_9a0585334e81005cc97d76ca2774516f_rle_crop_4045406924_0.png', 1396146112: '1764108667_2831133_1396145313_305937e136a73cb111a5e8a43d43072b_rle_crop_4045408378_0.png', 1396146113: '1764108667_2831133_1396145313_305937e136a73cb111a5e8a43d43072b_rle_crop_4045408377_0.png', 1396146264: '1764108746_2834300_1396143862_fc58e68e58286de5684505002fae1004_rle_crop_4045408692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/717ff4fa168c48b219910574a9adbb39_25630450.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/898076f29d2c307115dd8d99b27d99da_27944178.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/7107fc37a3338c03ce8c6f23e0aeec49_26007392.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/f01458dc74929be0dfb52947c7f94d42_75150271.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/1cde6b435db204e292dec9884b3bfa58_17416367.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/d0f64abef1e72654af84dfe724dd117d_52478864.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/6d2ebc1a4135379a8baeb08b22d1b53c_26868091.png change filename to text .imagette288960471764108902/ imagette288960471764108902/1764108746_2834300_1396143862_fc58e68e58286de5684505002fae1004_rle_crop_4045408692_0.png.png imagette288960471764108902/1764108667_2831133_1396145313_305937e136a73cb111a5e8a43d43072b_rle_crop_4045408377_0.png.png imagette288960471764108902/1764108547_2828258_1396144268_ea6e81a73e879d0f1863e58cec9a00bc_rle_crop_4045406886_0.png.png imagette288960471764108902/1764108425_2824856_1396144085_c32ae529a296bb11d7b551e33f37a044_rle_crop_4045406648_0.png.png imagette288960471764108902/1764108667_2831133_1396145313_305937e136a73cb111a5e8a43d43072b_rle_crop_4045408378_0.png.png imagette288960471764108902/1764108425_2824856_1396144134_7587f69fd76ebe775947f368696e5357_rle_crop_4045406554_0.png.png imagette288960471764108902/1764108547_2828258_1396144192_9a0585334e81005cc97d76ca2774516f_rle_crop_4045406919_0.png.png imagette288960471764108902/1764108547_2828258_1396144192_9a0585334e81005cc97d76ca2774516f_rle_crop_4045406924_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/8de090c22fab7604c4c3fa3311443528_51703430.png imagette288960471764108902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28896031 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28896048,28896049,28896050,28896051,28896052,28896053,28896054,28896055,28896056,28896057,28896058,28896059?tags=papier,kraft,plastique,flou,metal,environnement,Carton_brun,cartonnette,Teint_Dans_La_Masse,autre_refus,mal_croppe,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1396146286] : ('0.05349155369761922',) no score found for photo 1396146286 We are sending mail with results at report@fotonower.com args[1396146285] : ('0.05349155369761922',) no score found for photo 1396146285 We are sending mail with results at report@fotonower.com args[1396146282] : ('0.05349155369761922',) no score found for photo 1396146282 We are sending mail with results at report@fotonower.com args[1396146279] : ('0.05349155369761922',) no score found for photo 1396146279 We are sending mail with results at report@fotonower.com args[1396146276] : ('0.05349155369761922',) no score found for photo 1396146276 We are sending mail with results at report@fotonower.com args[1396146274] : ('0.05349155369761922',) no score found for photo 1396146274 We are sending mail with results at report@fotonower.com args[1396146272] : ('0.05349155369761922',) no score found for photo 1396146272 We are sending mail with results at report@fotonower.com args[1396146271] : ('0.05349155369761922',) no score found for photo 1396146271 We are sending mail with results at report@fotonower.com refus_total : 0.05349155369761922 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896031 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_P28896031_25-11-2025_23_15_00.pdf results_Auto_P28896031_25-11-2025_23_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28896031_25-11-2025_23_15_00.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','28896031','results_Auto_P28896031_25-11-2025_23_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28896031_25-11-2025_23_15_00.pdf','pdf','','0.19','0.05349155369761922') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28896031]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] map_info['map_portfolio_photo'] : {28896031: [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271, 1396146221, 1396146216, 1396146142, 1396146111, 1396146067, 1396146036, 1396146004, 1396145904, 1396145875, 1396145872, 1396145869, 1396145750, 1396145626, 1396145592, 1396145559, 1396145527, 1396145371, 1396145313, 1396145238, 1396144833, 1396144799, 1396144770, 1396144743, 1396144716, 1396144689, 1396144302, 1396144268, 1396144235, 1396144192, 1396144175, 1396144157, 1396144156, 1396144155, 1396144134, 1396144127, 1396144124, 1396144123, 1396144119, 1396144118, 1396144107, 1396144097, 1396144094, 1396144092, 1396144090, 1396144088, 1396144085, 1396144049, 1396144040, 1396144029, 1396144025, 1396144023, 1396143862]} final : False mtd_id 4302 list_pids : [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] 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, '4115984') ('4302', '28896031', '1396146286', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '28896031', '1396146286', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984')] time used for this insertion : 0.017837047576904297 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.573394060134888 time spend to save output : 0.01803874969482422 total time spend for step 4 : 4.591432809829712 step5:split_time_score Tue Nov 25 23:15:04 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 : ['28896031'] 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 : [('28896031',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28896031) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396146271: {'path': 'temp/1764108899_2929994_1396146271_dd0e986df01df082f48c78b6b7c023df.jpg', 'extension': 'jpg'}, 1396146272: {'path': 'temp/1764108899_2929994_1396146272_ec1eb4f3ec345aa66395c05facf9211b.jpg', 'extension': 'jpg'}, 1396146279: {'path': 'temp/1764108899_2929994_1396146279_33f1648b1356b7258586fed7cecad564.jpg', 'extension': 'jpg'}, 1396146282: {'path': 'temp/1764108899_2929994_1396146282_f452fd83ef655d52cb509f277044791e.jpg', 'extension': 'jpg'}, 1396146274: {'path': 'temp/1764108899_2929994_1396146274_ac630ad8e7aa35db530dcf86415b10de.jpg', 'extension': 'jpg'}, 1396146276: {'path': 'temp/1764108899_2929994_1396146276_837531133d1a97e201e3804a43300676.jpg', 'extension': 'jpg'}, 1396146285: {'path': 'temp/1764108899_2929994_1396146285_a529a566c8f7d815180cc6656c58f903.jpg', 'extension': 'jpg'}, 1396146286: {'path': 'temp/1764108899_2929994_1396146286_5264d7373f7858033d5d810b557ac475.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 = 28896031; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28896031 group by h (('23', 60),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28896031 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 (28896031) 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 (28896031) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25112025 28896031 Nombre de photos uploadées : 60 / 23040 (0%) 25112025 28896031 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 25112025 28896031 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1396143862, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/fc58e68e58286de5684505002fae1004.jpg', 'username': None, 'uploaded_at': 1764108067, 'text': 'image_25112025_23_00_14_10196.jpg'}, {'photo_id': 1396144049, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/c1029eac2052ae7de16448036dc56353.jpg', 'username': None, 'uploaded_at': 1764108128, 'text': 'image_25112025_23_00_24_10140.jpg'}, {'photo_id': 1396144119, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/cac0da00e4e26cc7b4d2b9864aec8547.jpg', 'username': None, 'uploaded_at': 1764108227, 'text': 'image_25112025_23_00_24_10140.jpg'}, {'photo_id': 1396144040, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/25/bb90fe9c36c4e5f85b0a304e415ff310.jpg', 'username': None, 'uploaded_at': 1764108128, 'text': 'image_25112025_23_01_05_10164.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0037429332733154297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28896031, '2025-11-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-25' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2638238,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25216245651245117 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= 2638238 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28852271, 'dashboard_result_id': 17721615, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852271_25-11-2025_06_06_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852291, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28852822, 'dashboard_result_id': 17721616, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852822_25-11-2025_06_06_17.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852838, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28853228, 'dashboard_result_id': 17721617, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853228_25-11-2025_06_07_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28853234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853245, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28853609, 'dashboard_result_id': 17721618, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853609_25-11-2025_06_07_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28853626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853629, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28854780, 'dashboard_result_id': 17721619, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28854780_25-11-2025_06_08_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28854785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28854786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28854787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28854788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28854789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28854790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28854791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28854792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28854793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28854794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28854795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28854796, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28855135, 'dashboard_result_id': 17721620, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855135_25-11-2025_06_08_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28855144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855156, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28855515, 'dashboard_result_id': 17721621, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855515_25-11-2025_06_09_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28855528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855531, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28856051, 'dashboard_result_id': 17721623, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856051_25-11-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28856077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856087, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28856612, 'dashboard_result_id': 17721624, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856612_25-11-2025_06_10_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28856613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856624, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28856969, 'dashboard_result_id': 17721625, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_06_11_14.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857006, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28857434, 'dashboard_result_id': 17721626, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857434_25-11-2025_06_11_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28857448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28857452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28857455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28857457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28857458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857460, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28857940, 'dashboard_result_id': 17721628, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857940_25-11-2025_06_12_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28857961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28857962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28857963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28857964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28857972, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28858383, 'dashboard_result_id': 17721629, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858383_25-11-2025_06_12_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28858384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28858385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28858386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28858387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28858388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28858389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28858390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28858391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28858392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28858393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28858394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28858395, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28858949, 'dashboard_result_id': 17721630, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858949_25-11-2025_06_13_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28858974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28858975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28858976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28858977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28858978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28858979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28858980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28858981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28858982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28858983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28858984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28858985, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28859371, 'dashboard_result_id': 17721632, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28859371_25-11-2025_06_14_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28859385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28859386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28859387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28859388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28859389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28859390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28859391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28859392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28859393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28859394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28859395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28859396, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28861206, 'dashboard_result_id': 17721633, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861206_25-11-2025_06_14_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861220, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28861760, 'dashboard_result_id': 17721634, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861760_25-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861774, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28861865, 'dashboard_result_id': 17721635, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861865_25-11-2025_05_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861881, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28862315, 'dashboard_result_id': 17721637, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862315_25-11-2025_06_05_27.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28862320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28862321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28862322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28862323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28862324, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28862325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28862326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28862327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28862328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28862330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28862331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28862332, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28862718, 'dashboard_result_id': 17721639, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862718_25-11-2025_06_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28862727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28862728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28862729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28862730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28862731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28862732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28862734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28862735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28862737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28862738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28862739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28862741, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28863032, 'dashboard_result_id': 17721640, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863032_25-11-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863053, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28863460, 'dashboard_result_id': 17721641, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863460_25-11-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863479, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28863885, 'dashboard_result_id': 17721642, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863885_25-11-2025_07_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863912, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28864225, 'dashboard_result_id': 17721643, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864225_25-11-2025_07_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28864259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28864260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28864261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28864262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28864263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28864264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28864265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28864266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28864267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28864268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28864269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28864270, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28864941, 'dashboard_result_id': 17721644, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864941_25-11-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28864954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28864955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28864956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28864957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28864958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28864959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28864960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28864961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28864962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28864963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28864964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28864965, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28865470, 'dashboard_result_id': 17721645, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865470_25-11-2025_07_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28865494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28865495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28865496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28865497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28865498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28865499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28865500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28865501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28865502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28865503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28865504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28865505, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28865867, 'dashboard_result_id': 17721646, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865867_25-11-2025_08_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28865880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28865881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28865882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28865883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28865884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28865885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28865886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28865887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28865888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28865889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28865890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28865891, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28866549, 'dashboard_result_id': 17721647, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28866549_25-11-2025_08_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28866570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28866571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28866572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28866573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28866574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28866575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28866576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28866577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28866578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28866579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28866580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28866581, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28867206, 'dashboard_result_id': 17721648, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867206_25-11-2025_08_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28867218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28867219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28867220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28867221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28867222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28867223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28867224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28867225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28867226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28867227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28867228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28867229, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28867879, 'dashboard_result_id': 17721649, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867879_25-11-2025_08_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28867896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28867897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28867898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28867899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28867900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28867901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28867902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28867903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28867904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28867905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28867906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28867907, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28868327, 'dashboard_result_id': 17721650, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28868327_25-11-2025_09_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28868335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28868336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28868337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28868338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28868339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28868341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28868342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28868343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28868344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28868345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28868346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28868347, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28869708, 'dashboard_result_id': 17721651, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28869708_25-11-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28869725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28869726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28869727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28869728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28869729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28869730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28869731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28869732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28869733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28869734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28869735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28869736, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28870046, 'dashboard_result_id': 17721652, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870046_25-11-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28870078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28870079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28870080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28870081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28870082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28870083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28870084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28870085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28870086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28870087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28870088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28870089, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28870794, 'dashboard_result_id': 17721653, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870794_25-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28870889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28870890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28870891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28870892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28870893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28870894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28870895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28870896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28870897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28870898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28870899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28870900, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28871356, 'dashboard_result_id': 17721654, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28871356_25-11-2025_10_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28871364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28871365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28871366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28871367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28871368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28871369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28871370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28871371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28871372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28871373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28871374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28871375, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28872178, 'dashboard_result_id': 17721655, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872178_25-11-2025_10_47_27.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28872209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28872210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28872211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28872212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28872213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28872214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28872215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28872216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28872217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28872218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28872219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28872220, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28872840, 'dashboard_result_id': 17721656, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872840_25-11-2025_11_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28872877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28872878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28872879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28872880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28872881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28872882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28872883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28872884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28872885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28872886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28872887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28872888, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28873439, 'dashboard_result_id': 17721657, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28873439_25-11-2025_11_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28873456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28873457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28873458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28873459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28873460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28873461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28873462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28873463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28873464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28873465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28873466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28873467, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28874056, 'dashboard_result_id': 17721658, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874056_25-11-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28874063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28874064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28874065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28874066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28874067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28874068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28874069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28874070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28874071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28874073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28874074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28874075, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28874733, 'dashboard_result_id': 17721659, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874733_25-11-2025_11_50_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28874772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28874773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28874774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28874775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28874776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28874777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28874778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28874779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28874780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28874781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28874782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28874783, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28875448, 'dashboard_result_id': 17721660, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875448_25-11-2025_12_03_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28875453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28875454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28875455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28875456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28875457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28875458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28875459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28875460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28875461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28875462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28875463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28875464, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28875665, 'dashboard_result_id': 17721661, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875665_25-11-2025_14_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28875673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28875674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28875675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28875676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28875677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28875678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28875679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28875680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28875681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28875682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28875683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28875684, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28877780, 'dashboard_result_id': 17721662, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877780_25-11-2025_13_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28877781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28877782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28877783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28877784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28877785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28877786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28877787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28877788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28877789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28877790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28877791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28877792, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28877995, 'dashboard_result_id': 17721663, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877995_25-11-2025_14_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28877999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878010, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28878336, 'dashboard_result_id': 17721664, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878336_25-11-2025_14_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28878356, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28878801, 'dashboard_result_id': 17721665, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878801_25-11-2025_14_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28878816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878819, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28879255, 'dashboard_result_id': 17721666, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879255_25-11-2025_14_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28879275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28879276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28879277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28879278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28879279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28879280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28879281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28879282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28879283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28879284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28879285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28879286, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28879540, 'dashboard_result_id': 17721667, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879540_25-11-2025_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28879548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28879549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28879550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28879551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28879552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28879553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28879555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28879556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28879557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28879558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28879559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28879560, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28880010, 'dashboard_result_id': 17721668, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880010_25-11-2025_15_25_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28880030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880040, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28880719, 'dashboard_result_id': 17721669, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880719_25-11-2025_15_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28880729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880740, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28880933, 'dashboard_result_id': 17721670, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880933_25-11-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28880981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880987, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28881391, 'dashboard_result_id': 17721671, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881391_25-11-2025_16_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28881424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28881425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28881426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28881427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28881428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28881429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28881430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28881431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28881432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28881433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28881434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28881435, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28881908, 'dashboard_result_id': 17721672, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881908_25-11-2025_16_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28881950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28881951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28881952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28881953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28881954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28881955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28881956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28881957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28881958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28881959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28881960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28881961, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28882494, 'dashboard_result_id': 17721673, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882494_25-11-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28882507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28882508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28882509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28882510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28882511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28882512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28882514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28882516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28882518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28882520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28882523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28882525, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28882965, 'dashboard_result_id': 17721674, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882965_25-11-2025_16_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28882983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28882984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28882985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28882986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28882987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28882988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28882989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28882990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28882991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28882992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28882993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28882994, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28883479, 'dashboard_result_id': 17721675, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883479_25-11-2025_17_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28883489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28883490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28883491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28883492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28883493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28883494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28883495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28883496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28883497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28883498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28883499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28883500, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28883892, 'dashboard_result_id': 17721676, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883892_25-11-2025_17_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28883928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28883929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28883930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28883932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28883933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28883934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28883935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28883936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28883937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28883938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28883939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28883940, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28884461, 'dashboard_result_id': 17721678, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28884461_25-11-2025_17_54_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28884496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28884497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28884498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28884499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28884500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28884501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28884502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28884503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28884504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28884505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28884506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28884507, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28885731, 'dashboard_result_id': 17721679, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28885731_25-11-2025_18_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28885740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28885741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28885742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28885743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28885744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28885745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28885746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28885747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28885748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28885749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28885750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28885751, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28886248, 'dashboard_result_id': 17721680, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886248_25-11-2025_18_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28886274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28886275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28886276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28886277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28886278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28886279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28886280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28886281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28886282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28886283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28886284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28886285, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28886700, 'dashboard_result_id': 17721681, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886700_25-11-2025_18_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28886768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28886769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28886770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28886771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28886772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28886773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28886774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28886775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28886776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28886777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28886778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28886779, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28887252, 'dashboard_result_id': 17721682, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887252_25-11-2025_19_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28887262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28887263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28887264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28887265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28887266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28887267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28887268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28887269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28887270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28887272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28887273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28887274, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28887685, 'dashboard_result_id': 17721683, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887685_25-11-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28887694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28887695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28887696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28887697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28887698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28887699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28887700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28887701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28887702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28887703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28887704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28887705, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28888354, 'dashboard_result_id': 17721684, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888354_25-11-2025_19_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28888380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28888381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28888382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28888383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28888384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28888385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28888386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28888387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28888388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28888389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28888390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28888391, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28888837, 'dashboard_result_id': 17721685, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888837_25-11-2025_19_47_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28888863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28888864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28888865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28888866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28888867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28888868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28888869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28888870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28888871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28888872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28888873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28888874, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28889268, 'dashboard_result_id': 17721686, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889268_25-11-2025_20_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28889305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28889306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28889307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28889308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28889309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28889310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28889311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28889312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28889313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28889314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28889315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28889316, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28889839, 'dashboard_result_id': 17721687, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889839_25-11-2025_20_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28889932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28889933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28889935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28889936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28889937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28889939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28889940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28889941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28889942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28889943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28889944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28889945, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28890435, 'dashboard_result_id': 17721688, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28890435_25-11-2025_20_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28890460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28890461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28890462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28890463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28890464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28890465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28890466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28890467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28890468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28890469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28890470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28890471, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28891002, 'dashboard_result_id': 17721689, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891002_25-11-2025_21_05_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28891053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28891054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28891055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28891056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28891057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28891058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28891059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28891060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28891061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28891062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28891063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28891064, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28891792, 'dashboard_result_id': 17721690, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891792_25-11-2025_21_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28891807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28891808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28891809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28891810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28891811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28891812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28891813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28891814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28891815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28891816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28891817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28891818, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28892257, 'dashboard_result_id': 17721691, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892257_25-11-2025_21_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28892294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28892295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28892296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28892297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28892298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28892299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28892300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28892301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28892302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28892303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28892304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28892305, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28892643, 'dashboard_result_id': 17721692, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892643_25-11-2025_21_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28892676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28892677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28892678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28892679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28892680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28892681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28892682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28892683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28892684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28892685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28892686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28892687, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28893235, 'dashboard_result_id': 17721693, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893235_25-11-2025_22_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28893261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28893262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28893263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28893264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28893265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28893266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28893267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28893268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28893269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28893270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28893271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28893272, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28893609, 'dashboard_result_id': 17721694, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893609_25-11-2025_22_17_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28893626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28893627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28893628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28893629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28893630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28893631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28893632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28893633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28893635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28893636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28893637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28893638, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28894276, 'dashboard_result_id': 17721695, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894276_25-11-2025_22_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28894277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28894278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28894279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28894280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28894281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28894282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28894283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28894284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28894285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28894286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28894287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28894288, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28894844, 'dashboard_result_id': 17721696, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894844_25-11-2025_22_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28894865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28894866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28894867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28894868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28894869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28894870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28894871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28894872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28894873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28894874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28894875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28894876, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28895364, 'dashboard_result_id': 17721697, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28895364_25-11-2025_23_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28895373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28895374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28895375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28895376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28895377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28895378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28895379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28895380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28895381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28895382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28895383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28895384, 'pht': 3726}}"}, {'dashboat_entry_day': 2638238, 'dashboard_run_id': 2651726, 'mtr_portfolio_id': 28896031, 'dashboard_result_id': 17721698, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28896031_25-11-2025_23_13_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28896036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28896037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28896038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28896039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28896040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28896041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28896042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28896043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28896044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28896045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28896046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28896047, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28852271 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': 4108896, 'mtr_portfolio_id': 28852271, 'created_at': datetime.datetime(2025, 11, 25, 6, 5, 59), 'result': '0.049333516183051554', 'result_long': None, 'result_double': None}] Qualite : 0.049333516183051554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28852271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852271_25-11-2025_06_06_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28852271 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852271_25-11-2025_06_06_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852291, 'pht': 3726}}" where mtr_portfolio_id = 28852271 and dashboard_run_id = 2651726 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`=28852271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721615, 0.049333516183051554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852271_25-11-2025_06_06_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852291, '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 = 28852822 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': 4108897, 'mtr_portfolio_id': 28852822, 'created_at': datetime.datetime(2025, 11, 25, 6, 6, 13), 'result': '0.047831880986532856', 'result_long': None, 'result_double': None}] Qualite : 0.047831880986532856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28852822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852822_25-11-2025_06_06_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28852822 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852822_25-11-2025_06_06_17.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852838, 'pht': 3726}}" where mtr_portfolio_id = 28852822 and dashboard_run_id = 2651726 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`=28852822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721616, 0.047831880986532856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28852822_25-11-2025_06_06_17.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28852827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28852828, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28852829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28852830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28852831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28852832, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28852833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28852834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28852835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28852836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28852837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28852838, '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 = 28853228 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': 4108898, 'mtr_portfolio_id': 28853228, 'created_at': datetime.datetime(2025, 11, 25, 6, 6, 57), 'result': '0.05847096078835345', 'result_long': None, 'result_double': None}] Qualite : 0.05847096078835345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28853228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853228_25-11-2025_06_07_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28853228 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853228_25-11-2025_06_07_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28853234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853245, 'pht': 3726}}" where mtr_portfolio_id = 28853228 and dashboard_run_id = 2651726 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`=28853228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721617, 0.05847096078835345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853228_25-11-2025_06_07_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28853234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853243, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853245, '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 = 28853609 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': 4108899, 'mtr_portfolio_id': 28853609, 'created_at': datetime.datetime(2025, 11, 25, 6, 7, 31), 'result': '0.061999187655993215', 'result_long': None, 'result_double': None}] Qualite : 0.061999187655993215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28853609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853609_25-11-2025_06_07_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28853609 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853609_25-11-2025_06_07_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28853626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853629, 'pht': 3726}}" where mtr_portfolio_id = 28853609 and dashboard_run_id = 2651726 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`=28853609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721618, 0.061999187655993215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28853609_25-11-2025_06_07_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28853618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28853619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28853620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28853621, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28853622, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28853623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28853624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28853625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28853626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28853627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28853628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28853629, '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 = 28854780 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': 4108900, 'mtr_portfolio_id': 28854780, 'created_at': datetime.datetime(2025, 11, 25, 6, 8, 1), 'result': '0.06832627871877223', 'result_long': None, 'result_double': None}] Qualite : 0.06832627871877223 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28854780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28854780_25-11-2025_06_08_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28854780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28854780_25-11-2025_06_08_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28854785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28854786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28854787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28854788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28854789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28854790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28854791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28854792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28854793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28854794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28854795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28854796, 'pht': 3726}}" where mtr_portfolio_id = 28854780 and dashboard_run_id = 2651726 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`=28854780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721619, 0.06832627871877223, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28854780_25-11-2025_06_08_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28854785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28854786, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28854787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28854788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28854789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28854790, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28854791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28854792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28854793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28854794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28854795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28854796, '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 = 28855135 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': 4108901, 'mtr_portfolio_id': 28855135, 'created_at': datetime.datetime(2025, 11, 25, 6, 8, 30), 'result': '0.05083645559457072', 'result_long': None, 'result_double': None}] Qualite : 0.05083645559457072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28855135 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855135_25-11-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28855135 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855135_25-11-2025_06_08_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28855144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855156, 'pht': 3726}}" where mtr_portfolio_id = 28855135 and dashboard_run_id = 2651726 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`=28855135 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721620, 0.05083645559457072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855135_25-11-2025_06_08_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28855144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855151, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855156, '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 = 28855515 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': 4108902, 'mtr_portfolio_id': 28855515, 'created_at': datetime.datetime(2025, 11, 25, 6, 9, 26), 'result': '0.05390802139963221', 'result_long': None, 'result_double': None}] Qualite : 0.05390802139963221 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28855515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855515_25-11-2025_06_09_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28855515 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855515_25-11-2025_06_09_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28855528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855531, 'pht': 3726}}" where mtr_portfolio_id = 28855515 and dashboard_run_id = 2651726 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`=28855515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721621, 0.05390802139963221, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28855515_25-11-2025_06_09_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28855520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28855521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28855522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28855523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28855524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28855525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28855526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28855527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28855528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28855529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28855530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28855531, '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 = 28856051 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': 4108903, 'mtr_portfolio_id': 28856051, 'created_at': datetime.datetime(2025, 11, 25, 6, 9, 58), 'result': '0.0421666125047908', 'result_long': None, 'result_double': None}] Qualite : 0.0421666125047908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28856051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856051_25-11-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28856051 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856051_25-11-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28856077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856087, 'pht': 3726}}" where mtr_portfolio_id = 28856051 and dashboard_run_id = 2651726 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`=28856051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721623, 0.0421666125047908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856051_25-11-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28856077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856084, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856087, '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 = 28856612 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': 4108904, 'mtr_portfolio_id': 28856612, 'created_at': datetime.datetime(2025, 11, 25, 6, 10, 30), 'result': '0.07900121265334802', 'result_long': None, 'result_double': None}] Qualite : 0.07900121265334802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28856612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856612_25-11-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28856612 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856612_25-11-2025_06_10_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28856613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856624, 'pht': 3726}}" where mtr_portfolio_id = 28856612 and dashboard_run_id = 2651726 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`=28856612 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721624, 0.07900121265334802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856612_25-11-2025_06_10_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28856613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28856616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28856619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28856620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28856621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28856622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28856624, '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 = 28856969 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': 4108905, 'mtr_portfolio_id': 28856969, 'created_at': datetime.datetime(2025, 11, 25, 6, 11, 11), 'result': '0.04128446381566854', 'result_long': None, 'result_double': None}] Qualite : 0.04128446381566854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28856969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_06_11_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28856969 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_06_11_14.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857006, 'pht': 3726}}" where mtr_portfolio_id = 28856969 and dashboard_run_id = 2651726 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`=28856969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721625, 0.04128446381566854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28856969_25-11-2025_06_11_14.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28856995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28856996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28856997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28856998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28856999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857003, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857006, '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 = 28857434 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': 4108906, 'mtr_portfolio_id': 28857434, 'created_at': datetime.datetime(2025, 11, 25, 6, 11, 29), 'result': '0.049220871365716845', 'result_long': None, 'result_double': None}] Qualite : 0.049220871365716845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28857434 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857434_25-11-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28857434 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857434_25-11-2025_06_11_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28857448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28857452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28857455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28857457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28857458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857460, 'pht': 3726}}" where mtr_portfolio_id = 28857434 and dashboard_run_id = 2651726 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`=28857434 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721626, 0.049220871365716845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857434_25-11-2025_06_11_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28857448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28857452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28857455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28857457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28857458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857460, '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 = 28857940 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': 4108907, 'mtr_portfolio_id': 28857940, 'created_at': datetime.datetime(2025, 11, 25, 6, 11, 59), 'result': '0.05283995255350041', 'result_long': None, 'result_double': None}] Qualite : 0.05283995255350041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28857940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857940_25-11-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28857940 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857940_25-11-2025_06_12_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28857961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28857962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28857963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28857964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28857972, 'pht': 3726}}" where mtr_portfolio_id = 28857940 and dashboard_run_id = 2651726 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`=28857940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721628, 0.05283995255350041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28857940_25-11-2025_06_12_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28857961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28857962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28857963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28857964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28857965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28857966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28857967, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28857968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28857969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28857970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28857971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28857972, '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 = 28858383 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': 4108908, 'mtr_portfolio_id': 28858383, 'created_at': datetime.datetime(2025, 11, 25, 6, 12, 31), 'result': '0.053503046476301025', 'result_long': None, 'result_double': None}] Qualite : 0.053503046476301025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28858383 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858383_25-11-2025_06_12_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28858383 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858383_25-11-2025_06_12_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28858384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28858385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28858386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28858387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28858388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28858389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28858390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28858391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28858392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28858393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28858394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28858395, 'pht': 3726}}" where mtr_portfolio_id = 28858383 and dashboard_run_id = 2651726 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`=28858383 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721629, 0.053503046476301025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858383_25-11-2025_06_12_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28858384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28858385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28858386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28858387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28858388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28858389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28858390, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28858391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28858392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28858393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28858394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28858395, '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 = 28858949 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': 4108909, 'mtr_portfolio_id': 28858949, 'created_at': datetime.datetime(2025, 11, 25, 6, 13, 28), 'result': '0.0476547460180373', 'result_long': None, 'result_double': None}] Qualite : 0.0476547460180373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28858949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858949_25-11-2025_06_13_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28858949 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858949_25-11-2025_06_13_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28858974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28858975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28858976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28858977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28858978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28858979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28858980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28858981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28858982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28858983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28858984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28858985, 'pht': 3726}}" where mtr_portfolio_id = 28858949 and dashboard_run_id = 2651726 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`=28858949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721630, 0.0476547460180373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28858949_25-11-2025_06_13_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28858974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28858975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28858976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28858977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28858978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28858979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28858980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28858981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28858982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28858983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28858984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28858985, '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 = 28859371 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': 4108910, 'mtr_portfolio_id': 28859371, 'created_at': datetime.datetime(2025, 11, 25, 6, 13, 59), 'result': '0.04812433386354002', 'result_long': None, 'result_double': None}] Qualite : 0.04812433386354002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28859371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28859371_25-11-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28859371 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28859371_25-11-2025_06_14_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28859385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28859386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28859387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28859388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28859389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28859390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28859391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28859392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28859393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28859394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28859395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28859396, 'pht': 3726}}" where mtr_portfolio_id = 28859371 and dashboard_run_id = 2651726 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`=28859371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721632, 0.04812433386354002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28859371_25-11-2025_06_14_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28859385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28859386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28859387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28859388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28859389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28859390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28859391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28859392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28859393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28859394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28859395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28859396, '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 = 28861206 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': 4108912, 'mtr_portfolio_id': 28861206, 'created_at': datetime.datetime(2025, 11, 25, 6, 14, 30), 'result': '0.029312233121478314', 'result_long': None, 'result_double': None}] Qualite : 0.029312233121478314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28861206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861206_25-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28861206 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861206_25-11-2025_06_14_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861220, 'pht': 3726}}" where mtr_portfolio_id = 28861206 and dashboard_run_id = 2651726 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`=28861206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721633, 0.029312233121478314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861206_25-11-2025_06_14_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861211, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861217, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861218, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861219, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861220, '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 = 28861760 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': 4108913, 'mtr_portfolio_id': 28861760, 'created_at': datetime.datetime(2025, 11, 25, 6, 15, 29), 'result': '0.053738447561115565', 'result_long': None, 'result_double': None}] Qualite : 0.053738447561115565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28861760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861760_25-11-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28861760 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861760_25-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861774, 'pht': 3726}}" where mtr_portfolio_id = 28861760 and dashboard_run_id = 2651726 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`=28861760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721634, 0.053738447561115565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861760_25-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861764, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861771, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861773, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861774, '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 = 28861865 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': 4108836, 'mtr_portfolio_id': 28861865, 'created_at': datetime.datetime(2025, 11, 25, 5, 49), 'result': '0.04195591839053495', 'result_long': None, 'result_double': None}] Qualite : 0.04195591839053495 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28861865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861865_25-11-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28861865 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861865_25-11-2025_05_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861881, 'pht': 3726}}" where mtr_portfolio_id = 28861865 and dashboard_run_id = 2651726 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`=28861865 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721635, 0.04195591839053495, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28861865_25-11-2025_05_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28861870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28861871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28861872, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28861873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28861874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28861875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28861876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28861877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28861878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28861879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28861880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28861881, '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 = 28862315 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': 4109018, 'mtr_portfolio_id': 28862315, 'created_at': datetime.datetime(2025, 11, 25, 6, 5, 27), 'result': '0.0496565246192142', 'result_long': None, 'result_double': None}] Qualite : 0.0496565246192142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28862315 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862315_25-11-2025_06_05_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28862315 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862315_25-11-2025_06_05_27.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28862320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28862321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28862322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28862323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28862324, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28862325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28862326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28862327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28862328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28862330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28862331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28862332, 'pht': 3726}}" where mtr_portfolio_id = 28862315 and dashboard_run_id = 2651726 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`=28862315 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721637, 0.0496565246192142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862315_25-11-2025_06_05_27.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28862320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28862321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28862322, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28862323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28862324, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28862325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28862326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28862327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28862328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28862330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28862331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28862332, '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 = 28862718 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': 4109089, 'mtr_portfolio_id': 28862718, 'created_at': datetime.datetime(2025, 11, 25, 6, 17), 'result': '0.04849281753090048', 'result_long': None, 'result_double': None}] Qualite : 0.04849281753090048 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28862718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862718_25-11-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28862718 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862718_25-11-2025_06_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28862727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28862728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28862729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28862730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28862731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28862732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28862734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28862735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28862737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28862738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28862739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28862741, 'pht': 3726}}" where mtr_portfolio_id = 28862718 and dashboard_run_id = 2651726 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`=28862718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721639, 0.04849281753090048, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28862718_25-11-2025_06_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28862727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28862728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28862729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28862730, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28862731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28862732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28862734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28862735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28862737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28862738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28862739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28862741, '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 = 28863032 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': 4109155, 'mtr_portfolio_id': 28863032, 'created_at': datetime.datetime(2025, 11, 25, 6, 33), 'result': '0.03946073814943093', 'result_long': None, 'result_double': None}] Qualite : 0.03946073814943093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28863032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863032_25-11-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28863032 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863032_25-11-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863053, 'pht': 3726}}" where mtr_portfolio_id = 28863032 and dashboard_run_id = 2651726 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`=28863032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721640, 0.03946073814943093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863032_25-11-2025_06_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863053, '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 = 28863460 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': 4109232, 'mtr_portfolio_id': 28863460, 'created_at': datetime.datetime(2025, 11, 25, 6, 46, 58), 'result': '0.04866985083083497', 'result_long': None, 'result_double': None}] Qualite : 0.04866985083083497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28863460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863460_25-11-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28863460 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863460_25-11-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863479, 'pht': 3726}}" where mtr_portfolio_id = 28863460 and dashboard_run_id = 2651726 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`=28863460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721641, 0.04866985083083497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863460_25-11-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863468, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863477, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863479, '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 = 28863885 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': 4109359, 'mtr_portfolio_id': 28863885, 'created_at': datetime.datetime(2025, 11, 25, 7, 2, 57), 'result': '0.030870880055339615', 'result_long': None, 'result_double': None}] Qualite : 0.030870880055339615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28863885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863885_25-11-2025_07_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28863885 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863885_25-11-2025_07_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863912, 'pht': 3726}}" where mtr_portfolio_id = 28863885 and dashboard_run_id = 2651726 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`=28863885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721642, 0.030870880055339615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28863885_25-11-2025_07_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28863901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28863902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28863903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28863904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28863905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28863906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28863907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28863908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28863909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28863910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28863911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28863912, '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 = 28864225 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': 4109444, 'mtr_portfolio_id': 28864225, 'created_at': datetime.datetime(2025, 11, 25, 7, 18, 58), 'result': '0.02853966406969818', 'result_long': None, 'result_double': None}] Qualite : 0.02853966406969818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28864225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864225_25-11-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28864225 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864225_25-11-2025_07_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28864259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28864260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28864261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28864262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28864263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28864264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28864265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28864266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28864267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28864268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28864269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28864270, 'pht': 3726}}" where mtr_portfolio_id = 28864225 and dashboard_run_id = 2651726 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`=28864225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721643, 0.02853966406969818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864225_25-11-2025_07_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28864259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28864260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28864261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28864262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28864263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28864264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28864265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28864266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28864267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28864268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28864269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28864270, '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 = 28864941 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': 4109614, 'mtr_portfolio_id': 28864941, 'created_at': datetime.datetime(2025, 11, 25, 7, 32, 59), 'result': '0.03264488126597049', 'result_long': None, 'result_double': None}] Qualite : 0.03264488126597049 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28864941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864941_25-11-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28864941 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864941_25-11-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28864954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28864955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28864956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28864957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28864958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28864959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28864960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28864961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28864962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28864963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28864964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28864965, 'pht': 3726}}" where mtr_portfolio_id = 28864941 and dashboard_run_id = 2651726 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`=28864941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721644, 0.03264488126597049, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28864941_25-11-2025_07_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28864954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28864955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28864956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28864957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28864958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28864959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28864960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28864961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28864962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28864963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28864964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28864965, '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 = 28865470 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': 4109787, 'mtr_portfolio_id': 28865470, 'created_at': datetime.datetime(2025, 11, 25, 7, 47), 'result': '0.07672354388812107', 'result_long': None, 'result_double': None}] Qualite : 0.07672354388812107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28865470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865470_25-11-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28865470 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865470_25-11-2025_07_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28865494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28865495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28865496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28865497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28865498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28865499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28865500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28865501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28865502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28865503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28865504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28865505, 'pht': 3726}}" where mtr_portfolio_id = 28865470 and dashboard_run_id = 2651726 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`=28865470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721645, 0.07672354388812107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865470_25-11-2025_07_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28865494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28865495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28865496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28865497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28865498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28865499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28865500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28865501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28865502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28865503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28865504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28865505, '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 = 28865867 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': 4109954, 'mtr_portfolio_id': 28865867, 'created_at': datetime.datetime(2025, 11, 25, 8, 4, 58), 'result': '0.04087641473834815', 'result_long': None, 'result_double': None}] Qualite : 0.04087641473834815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28865867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865867_25-11-2025_08_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28865867 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865867_25-11-2025_08_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28865880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28865881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28865882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28865883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28865884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28865885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28865886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28865887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28865888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28865889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28865890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28865891, 'pht': 3726}}" where mtr_portfolio_id = 28865867 and dashboard_run_id = 2651726 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`=28865867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721646, 0.04087641473834815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28865867_25-11-2025_08_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28865880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28865881, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28865882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28865883, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28865884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28865885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28865886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28865887, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28865888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28865889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28865890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28865891, '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 = 28866549 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': 4110179, 'mtr_portfolio_id': 28866549, 'created_at': datetime.datetime(2025, 11, 25, 8, 17, 1), 'result': '0.03262734094572907', 'result_long': None, 'result_double': None}] Qualite : 0.03262734094572907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28866549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28866549_25-11-2025_08_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28866549 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28866549_25-11-2025_08_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28866570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28866571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28866572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28866573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28866574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28866575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28866576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28866577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28866578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28866579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28866580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28866581, 'pht': 3726}}" where mtr_portfolio_id = 28866549 and dashboard_run_id = 2651726 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`=28866549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721647, 0.03262734094572907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28866549_25-11-2025_08_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28866570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28866571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28866572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28866573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28866574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28866575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28866576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28866577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28866578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28866579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28866580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28866581, '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 = 28867206 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': 4110346, 'mtr_portfolio_id': 28867206, 'created_at': datetime.datetime(2025, 11, 25, 8, 34, 59), 'result': '0.04623664791374961', 'result_long': None, 'result_double': None}] Qualite : 0.04623664791374961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28867206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867206_25-11-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28867206 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867206_25-11-2025_08_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28867218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28867219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28867220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28867221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28867222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28867223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28867224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28867225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28867226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28867227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28867228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28867229, 'pht': 3726}}" where mtr_portfolio_id = 28867206 and dashboard_run_id = 2651726 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`=28867206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721648, 0.04623664791374961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867206_25-11-2025_08_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28867218, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28867219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28867220, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28867221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28867222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28867223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28867224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28867225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28867226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28867227, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28867228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28867229, '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 = 28867879 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': 4110543, 'mtr_portfolio_id': 28867879, 'created_at': datetime.datetime(2025, 11, 25, 8, 46, 59), 'result': '0.03808900187453458', 'result_long': None, 'result_double': None}] Qualite : 0.03808900187453458 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28867879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867879_25-11-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28867879 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867879_25-11-2025_08_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28867896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28867897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28867898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28867899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28867900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28867901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28867902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28867903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28867904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28867905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28867906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28867907, 'pht': 3726}}" where mtr_portfolio_id = 28867879 and dashboard_run_id = 2651726 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`=28867879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721649, 0.03808900187453458, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28867879_25-11-2025_08_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28867896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28867897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28867898, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28867899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28867900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28867901, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28867902, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28867903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28867904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28867905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28867906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28867907, '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 = 28868327 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': 4110707, 'mtr_portfolio_id': 28868327, 'created_at': datetime.datetime(2025, 11, 25, 9, 34, 59), 'result': '0.04281306597562471', 'result_long': None, 'result_double': None}] Qualite : 0.04281306597562471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28868327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28868327_25-11-2025_09_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28868327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28868327_25-11-2025_09_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28868335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28868336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28868337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28868338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28868339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28868341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28868342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28868343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28868344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28868345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28868346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28868347, 'pht': 3726}}" where mtr_portfolio_id = 28868327 and dashboard_run_id = 2651726 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`=28868327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721650, 0.04281306597562471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28868327_25-11-2025_09_35_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28868335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28868336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28868337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28868338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28868339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28868341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28868342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28868343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28868344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28868345, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28868346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28868347, '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 = 28869708 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': 4111100, 'mtr_portfolio_id': 28869708, 'created_at': datetime.datetime(2025, 11, 25, 9, 46, 58), 'result': '0.0368520269043409', 'result_long': None, 'result_double': None}] Qualite : 0.0368520269043409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28869708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28869708_25-11-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28869708 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28869708_25-11-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28869725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28869726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28869727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28869728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28869729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28869730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28869731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28869732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28869733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28869734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28869735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28869736, 'pht': 3726}}" where mtr_portfolio_id = 28869708 and dashboard_run_id = 2651726 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`=28869708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721651, 0.0368520269043409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28869708_25-11-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28869725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28869726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28869727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28869728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28869729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28869730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28869731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28869732, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28869733, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28869734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28869735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28869736, '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 = 28870046 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': 4111128, 'mtr_portfolio_id': 28870046, 'created_at': datetime.datetime(2025, 11, 25, 10, 3), 'result': '0.06812807385224216', 'result_long': None, 'result_double': None}] Qualite : 0.06812807385224216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28870046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870046_25-11-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28870046 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870046_25-11-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28870078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28870079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28870080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28870081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28870082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28870083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28870084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28870085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28870086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28870087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28870088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28870089, 'pht': 3726}}" where mtr_portfolio_id = 28870046 and dashboard_run_id = 2651726 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`=28870046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721652, 0.06812807385224216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870046_25-11-2025_10_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28870078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28870079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28870080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28870081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28870082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28870083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28870084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28870085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28870086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28870087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28870088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28870089, '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 = 28870794 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': 4111244, 'mtr_portfolio_id': 28870794, 'created_at': datetime.datetime(2025, 11, 25, 10, 16, 58), 'result': '0.05209331751157732', 'result_long': None, 'result_double': None}] Qualite : 0.05209331751157732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28870794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870794_25-11-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28870794 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870794_25-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28870889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28870890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28870891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28870892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28870893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28870894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28870895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28870896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28870897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28870898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28870899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28870900, 'pht': 3726}}" where mtr_portfolio_id = 28870794 and dashboard_run_id = 2651726 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`=28870794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721653, 0.05209331751157732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28870794_25-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28870889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28870890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28870891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28870892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28870893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28870894, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28870895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28870896, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28870897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28870898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28870899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28870900, '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 = 28871356 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': 4111320, 'mtr_portfolio_id': 28871356, 'created_at': datetime.datetime(2025, 11, 25, 10, 33), 'result': '0.0530030584564873', 'result_long': None, 'result_double': None}] Qualite : 0.0530030584564873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28871356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28871356_25-11-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28871356 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28871356_25-11-2025_10_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28871364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28871365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28871366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28871367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28871368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28871369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28871370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28871371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28871372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28871373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28871374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28871375, 'pht': 3726}}" where mtr_portfolio_id = 28871356 and dashboard_run_id = 2651726 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`=28871356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721654, 0.0530030584564873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28871356_25-11-2025_10_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28871364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28871365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28871366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28871367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28871368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28871369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28871370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28871371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28871372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28871373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28871374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28871375, '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 = 28872178 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': 4111425, 'mtr_portfolio_id': 28872178, 'created_at': datetime.datetime(2025, 11, 25, 10, 47, 26), 'result': '0.0697565939200685', 'result_long': None, 'result_double': None}] Qualite : 0.0697565939200685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28872178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872178_25-11-2025_10_47_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28872178 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872178_25-11-2025_10_47_27.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28872209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28872210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28872211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28872212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28872213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28872214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28872215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28872216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28872217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28872218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28872219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28872220, 'pht': 3726}}" where mtr_portfolio_id = 28872178 and dashboard_run_id = 2651726 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`=28872178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721655, 0.0697565939200685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872178_25-11-2025_10_47_27.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28872209, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28872210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28872211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28872212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28872213, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28872214, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28872215, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28872216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28872217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28872218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28872219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28872220, '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 = 28872840 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': 4111520, 'mtr_portfolio_id': 28872840, 'created_at': datetime.datetime(2025, 11, 25, 11, 3), 'result': '0.037971938835131544', 'result_long': None, 'result_double': None}] Qualite : 0.037971938835131544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28872840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872840_25-11-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28872840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872840_25-11-2025_11_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28872877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28872878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28872879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28872880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28872881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28872882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28872883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28872884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28872885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28872886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28872887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28872888, 'pht': 3726}}" where mtr_portfolio_id = 28872840 and dashboard_run_id = 2651726 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`=28872840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721656, 0.037971938835131544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28872840_25-11-2025_11_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28872877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28872878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28872879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28872880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28872881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28872882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28872883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28872884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28872885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28872886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28872887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28872888, '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 = 28873439 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': 4111584, 'mtr_portfolio_id': 28873439, 'created_at': datetime.datetime(2025, 11, 25, 11, 19, 28), 'result': '0.0340721257163982', 'result_long': None, 'result_double': None}] Qualite : 0.0340721257163982 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28873439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28873439_25-11-2025_11_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28873439 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28873439_25-11-2025_11_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28873456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28873457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28873458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28873459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28873460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28873461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28873462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28873463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28873464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28873465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28873466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28873467, 'pht': 3726}}" where mtr_portfolio_id = 28873439 and dashboard_run_id = 2651726 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`=28873439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721657, 0.0340721257163982, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28873439_25-11-2025_11_19_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28873456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28873457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28873458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28873459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28873460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28873461, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28873462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28873463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28873464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28873465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28873466, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28873467, '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 = 28874056 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': 4111749, 'mtr_portfolio_id': 28874056, 'created_at': datetime.datetime(2025, 11, 25, 11, 32, 59), 'result': '0.0177159048108275', 'result_long': None, 'result_double': None}] Qualite : 0.0177159048108275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28874056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874056_25-11-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28874056 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874056_25-11-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28874063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28874064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28874065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28874066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28874067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28874068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28874069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28874070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28874071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28874073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28874074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28874075, 'pht': 3726}}" where mtr_portfolio_id = 28874056 and dashboard_run_id = 2651726 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`=28874056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721658, 0.0177159048108275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874056_25-11-2025_11_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28874063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28874064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28874065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28874066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28874067, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28874068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28874069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28874070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28874071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28874073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28874074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28874075, '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 = 28874733 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': 4111928, 'mtr_portfolio_id': 28874733, 'created_at': datetime.datetime(2025, 11, 25, 11, 50, 57), 'result': '0.0809537726883218', 'result_long': None, 'result_double': None}] Qualite : 0.0809537726883218 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28874733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874733_25-11-2025_11_50_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28874733 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874733_25-11-2025_11_50_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28874772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28874773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28874774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28874775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28874776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28874777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28874778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28874779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28874780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28874781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28874782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28874783, 'pht': 3726}}" where mtr_portfolio_id = 28874733 and dashboard_run_id = 2651726 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`=28874733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721659, 0.0809537726883218, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28874733_25-11-2025_11_50_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28874772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28874773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28874774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28874775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28874776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28874777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28874778, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28874779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28874780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28874781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28874782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28874783, '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 = 28875448 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': 4112028, 'mtr_portfolio_id': 28875448, 'created_at': datetime.datetime(2025, 11, 25, 12, 3, 32), 'result': '0.05601464856094584', 'result_long': None, 'result_double': None}] Qualite : 0.05601464856094584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28875448 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875448_25-11-2025_12_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28875448 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875448_25-11-2025_12_03_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28875453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28875454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28875455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28875456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28875457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28875458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28875459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28875460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28875461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28875462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28875463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28875464, 'pht': 3726}}" where mtr_portfolio_id = 28875448 and dashboard_run_id = 2651726 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`=28875448 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721660, 0.05601464856094584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875448_25-11-2025_12_03_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28875453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28875454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28875455, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28875456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28875457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28875458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28875459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28875460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28875461, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28875462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28875463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28875464, '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 = 28875665 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': 4112085, 'mtr_portfolio_id': 28875665, 'created_at': datetime.datetime(2025, 11, 25, 14, 0, 59), 'result': '0.07275265839600019', 'result_long': None, 'result_double': None}] Qualite : 0.07275265839600019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28875665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875665_25-11-2025_14_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28875665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875665_25-11-2025_14_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28875673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28875674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28875675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28875676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28875677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28875678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28875679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28875680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28875681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28875682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28875683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28875684, 'pht': 3726}}" where mtr_portfolio_id = 28875665 and dashboard_run_id = 2651726 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`=28875665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721661, 0.07275265839600019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28875665_25-11-2025_14_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28875673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28875674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28875675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28875676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28875677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28875678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28875679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28875680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28875681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28875682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28875683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28875684, '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 = 28877780 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': 4112364, 'mtr_portfolio_id': 28877780, 'created_at': datetime.datetime(2025, 11, 25, 13, 47), 'result': '0.025928195050116398', 'result_long': None, 'result_double': None}] Qualite : 0.025928195050116398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28877780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877780_25-11-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28877780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877780_25-11-2025_13_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28877781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28877782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28877783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28877784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28877785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28877786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28877787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28877788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28877789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28877790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28877791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28877792, 'pht': 3726}}" where mtr_portfolio_id = 28877780 and dashboard_run_id = 2651726 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`=28877780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721662, 0.025928195050116398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877780_25-11-2025_13_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28877781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28877782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28877783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28877784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28877785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28877786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28877787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28877788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28877789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28877790, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28877791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28877792, '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 = 28877995 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': 4112386, 'mtr_portfolio_id': 28877995, 'created_at': datetime.datetime(2025, 11, 25, 14, 3, 32), 'result': '0.03203264398179624', 'result_long': None, 'result_double': None}] Qualite : 0.03203264398179624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28877995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877995_25-11-2025_14_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28877995 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877995_25-11-2025_14_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28877999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878010, 'pht': 3726}}" where mtr_portfolio_id = 28877995 and dashboard_run_id = 2651726 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`=28877995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721663, 0.03203264398179624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28877995_25-11-2025_14_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28877999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878001, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878003, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878006, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878007, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878010, '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 = 28878336 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': 4112449, 'mtr_portfolio_id': 28878336, 'created_at': datetime.datetime(2025, 11, 25, 14, 18, 56), 'result': '0.0406314089152285', 'result_long': None, 'result_double': None}] Qualite : 0.0406314089152285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28878336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878336_25-11-2025_14_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28878336 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878336_25-11-2025_14_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28878356, 'pht': 3726}}" where mtr_portfolio_id = 28878336 and dashboard_run_id = 2651726 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`=28878336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721664, 0.0406314089152285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878336_25-11-2025_14_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878348, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28878356, '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 = 28878801 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': 4112509, 'mtr_portfolio_id': 28878801, 'created_at': datetime.datetime(2025, 11, 25, 14, 32, 58), 'result': '0.045501126841190384', 'result_long': None, 'result_double': None}] Qualite : 0.045501126841190384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28878801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878801_25-11-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28878801 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878801_25-11-2025_14_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28878816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878819, 'pht': 3726}}" where mtr_portfolio_id = 28878801 and dashboard_run_id = 2651726 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`=28878801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721665, 0.045501126841190384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28878801_25-11-2025_14_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28878808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28878809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28878810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28878811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28878812, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28878813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28878814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28878815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28878816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28878817, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28878818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28878819, '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 = 28879255 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': 4112578, 'mtr_portfolio_id': 28879255, 'created_at': datetime.datetime(2025, 11, 25, 14, 46, 59), 'result': '0.04693732882144725', 'result_long': None, 'result_double': None}] Qualite : 0.04693732882144725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28879255 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879255_25-11-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28879255 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879255_25-11-2025_14_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28879275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28879276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28879277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28879278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28879279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28879280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28879281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28879282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28879283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28879284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28879285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28879286, 'pht': 3726}}" where mtr_portfolio_id = 28879255 and dashboard_run_id = 2651726 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`=28879255 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721666, 0.04693732882144725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879255_25-11-2025_14_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28879275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28879276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28879277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28879278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28879279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28879280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28879281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28879282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28879283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28879284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28879285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28879286, '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 = 28879540 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': 4112655, 'mtr_portfolio_id': 28879540, 'created_at': datetime.datetime(2025, 11, 25, 15, 3), 'result': '0.05771418651225456', 'result_long': None, 'result_double': None}] Qualite : 0.05771418651225456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28879540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879540_25-11-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28879540 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879540_25-11-2025_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28879548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28879549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28879550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28879551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28879552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28879553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28879555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28879556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28879557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28879558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28879559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28879560, 'pht': 3726}}" where mtr_portfolio_id = 28879540 and dashboard_run_id = 2651726 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`=28879540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721667, 0.05771418651225456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28879540_25-11-2025_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28879548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28879549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28879550, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28879551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28879552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28879553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28879555, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28879556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28879557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28879558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28879559, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28879560, '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 = 28880010 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': 4112788, 'mtr_portfolio_id': 28880010, 'created_at': datetime.datetime(2025, 11, 25, 15, 24, 59), 'result': '0.040757866289673136', 'result_long': None, 'result_double': None}] Qualite : 0.040757866289673136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28880010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880010_25-11-2025_15_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28880010 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880010_25-11-2025_15_25_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28880030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880040, 'pht': 3726}}" where mtr_portfolio_id = 28880010 and dashboard_run_id = 2651726 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`=28880010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721668, 0.040757866289673136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880010_25-11-2025_15_25_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880029, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28880030, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880040, '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 = 28880719 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': 4112895, 'mtr_portfolio_id': 28880719, 'created_at': datetime.datetime(2025, 11, 25, 15, 32, 58), 'result': '0.03807494672162547', 'result_long': None, 'result_double': None}] Qualite : 0.03807494672162547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28880719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880719_25-11-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28880719 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880719_25-11-2025_15_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28880729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880740, 'pht': 3726}}" where mtr_portfolio_id = 28880719 and dashboard_run_id = 2651726 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`=28880719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721669, 0.03807494672162547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880719_25-11-2025_15_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28880729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880740, '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 = 28880933 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': 4112938, 'mtr_portfolio_id': 28880933, 'created_at': datetime.datetime(2025, 11, 25, 15, 49), 'result': '0.034724596317285764', 'result_long': None, 'result_double': None}] Qualite : 0.034724596317285764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28880933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880933_25-11-2025_15_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28880933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880933_25-11-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28880981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880987, 'pht': 3726}}" where mtr_portfolio_id = 28880933 and dashboard_run_id = 2651726 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`=28880933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721670, 0.034724596317285764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28880933_25-11-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28880976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28880977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28880978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28880979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28880980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28880981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28880982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28880983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28880984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28880985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28880986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28880987, '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 = 28881391 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': 4113019, 'mtr_portfolio_id': 28881391, 'created_at': datetime.datetime(2025, 11, 25, 16, 2, 59), 'result': '0.03875485398015415', 'result_long': None, 'result_double': None}] Qualite : 0.03875485398015415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28881391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881391_25-11-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28881391 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881391_25-11-2025_16_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28881424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28881425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28881426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28881427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28881428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28881429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28881430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28881431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28881432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28881433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28881434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28881435, 'pht': 3726}}" where mtr_portfolio_id = 28881391 and dashboard_run_id = 2651726 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`=28881391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721671, 0.03875485398015415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881391_25-11-2025_16_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28881424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28881425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28881426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28881427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28881428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28881429, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28881430, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28881431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28881432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28881433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28881434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28881435, '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 = 28881908 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': 4113162, 'mtr_portfolio_id': 28881908, 'created_at': datetime.datetime(2025, 11, 25, 16, 18, 59), 'result': '0.037306856811776', 'result_long': None, 'result_double': None}] Qualite : 0.037306856811776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28881908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881908_25-11-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28881908 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881908_25-11-2025_16_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28881950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28881951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28881952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28881953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28881954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28881955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28881956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28881957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28881958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28881959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28881960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28881961, 'pht': 3726}}" where mtr_portfolio_id = 28881908 and dashboard_run_id = 2651726 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`=28881908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721672, 0.037306856811776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28881908_25-11-2025_16_18_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28881950, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28881951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28881952, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28881953, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28881954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28881955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28881956, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28881957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28881958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28881959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28881960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28881961, '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 = 28882494 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': 4113292, 'mtr_portfolio_id': 28882494, 'created_at': datetime.datetime(2025, 11, 25, 16, 32, 59), 'result': '0.04215261967103585', 'result_long': None, 'result_double': None}] Qualite : 0.04215261967103585 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28882494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882494_25-11-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28882494 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882494_25-11-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28882507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28882508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28882509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28882510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28882511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28882512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28882514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28882516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28882518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28882520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28882523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28882525, 'pht': 3726}}" where mtr_portfolio_id = 28882494 and dashboard_run_id = 2651726 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`=28882494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721673, 0.04215261967103585, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882494_25-11-2025_16_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28882507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28882508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28882509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28882510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28882511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28882512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28882514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28882516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28882518, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28882520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28882523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28882525, '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 = 28882965 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': 4113357, 'mtr_portfolio_id': 28882965, 'created_at': datetime.datetime(2025, 11, 25, 16, 49), 'result': '0.038983362885100875', 'result_long': None, 'result_double': None}] Qualite : 0.038983362885100875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28882965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882965_25-11-2025_16_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28882965 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882965_25-11-2025_16_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28882983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28882984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28882985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28882986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28882987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28882988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28882989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28882990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28882991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28882992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28882993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28882994, 'pht': 3726}}" where mtr_portfolio_id = 28882965 and dashboard_run_id = 2651726 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`=28882965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721674, 0.038983362885100875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28882965_25-11-2025_16_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28882983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28882984, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28882985, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28882986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28882987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28882988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28882989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28882990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28882991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28882992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28882993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28882994, '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 = 28883479 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': 4113462, 'mtr_portfolio_id': 28883479, 'created_at': datetime.datetime(2025, 11, 25, 17, 2, 58), 'result': '0.059427321468707904', 'result_long': None, 'result_double': None}] Qualite : 0.059427321468707904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28883479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883479_25-11-2025_17_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28883479 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883479_25-11-2025_17_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28883489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28883490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28883491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28883492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28883493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28883494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28883495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28883496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28883497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28883498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28883499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28883500, 'pht': 3726}}" where mtr_portfolio_id = 28883479 and dashboard_run_id = 2651726 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`=28883479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721675, 0.059427321468707904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883479_25-11-2025_17_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28883489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28883490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28883491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28883492, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28883493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28883494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28883495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28883496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28883497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28883498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28883499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28883500, '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 = 28883892 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': 4113580, 'mtr_portfolio_id': 28883892, 'created_at': datetime.datetime(2025, 11, 25, 17, 16, 57), 'result': '0.03892268522260155', 'result_long': None, 'result_double': None}] Qualite : 0.03892268522260155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28883892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883892_25-11-2025_17_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28883892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883892_25-11-2025_17_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28883928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28883929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28883930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28883932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28883933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28883934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28883935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28883936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28883937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28883938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28883939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28883940, 'pht': 3726}}" where mtr_portfolio_id = 28883892 and dashboard_run_id = 2651726 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`=28883892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721676, 0.03892268522260155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28883892_25-11-2025_17_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28883928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28883929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28883930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28883932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28883933, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28883934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28883935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28883936, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28883937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28883938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28883939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28883940, '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 = 28884461 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': 4113685, 'mtr_portfolio_id': 28884461, 'created_at': datetime.datetime(2025, 11, 25, 17, 54, 58), 'result': '0.0486758774545878', 'result_long': None, 'result_double': None}] Qualite : 0.0486758774545878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28884461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28884461_25-11-2025_17_54_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28884461 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28884461_25-11-2025_17_54_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28884496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28884497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28884498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28884499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28884500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28884501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28884502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28884503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28884504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28884505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28884506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28884507, 'pht': 3726}}" where mtr_portfolio_id = 28884461 and dashboard_run_id = 2651726 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`=28884461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721678, 0.0486758774545878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28884461_25-11-2025_17_54_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28884496, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28884497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28884498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28884499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28884500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28884501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28884502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28884503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28884504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28884505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28884506, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28884507, '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 = 28885731 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': 4114024, 'mtr_portfolio_id': 28885731, 'created_at': datetime.datetime(2025, 11, 25, 18, 19), 'result': '0.05534896687283533', 'result_long': None, 'result_double': None}] Qualite : 0.05534896687283533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28885731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28885731_25-11-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28885731 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28885731_25-11-2025_18_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28885740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28885741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28885742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28885743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28885744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28885745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28885746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28885747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28885748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28885749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28885750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28885751, 'pht': 3726}}" where mtr_portfolio_id = 28885731 and dashboard_run_id = 2651726 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`=28885731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721679, 0.05534896687283533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28885731_25-11-2025_18_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28885740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28885741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28885742, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28885743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28885744, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28885745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28885746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28885747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28885748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28885749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28885750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28885751, '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 = 28886248 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': 4114128, 'mtr_portfolio_id': 28886248, 'created_at': datetime.datetime(2025, 11, 25, 18, 32, 58), 'result': '0.039862750248088386', 'result_long': None, 'result_double': None}] Qualite : 0.039862750248088386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28886248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886248_25-11-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28886248 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886248_25-11-2025_18_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28886274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28886275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28886276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28886277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28886278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28886279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28886280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28886281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28886282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28886283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28886284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28886285, 'pht': 3726}}" where mtr_portfolio_id = 28886248 and dashboard_run_id = 2651726 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`=28886248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721680, 0.039862750248088386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886248_25-11-2025_18_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28886274, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28886275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28886276, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28886277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28886278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28886279, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28886280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28886281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28886282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28886283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28886284, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28886285, '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 = 28886700 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': 4114198, 'mtr_portfolio_id': 28886700, 'created_at': datetime.datetime(2025, 11, 25, 18, 48, 57), 'result': '0.030675597624840796', 'result_long': None, 'result_double': None}] Qualite : 0.030675597624840796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28886700 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886700_25-11-2025_18_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28886700 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886700_25-11-2025_18_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28886768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28886769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28886770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28886771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28886772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28886773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28886774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28886775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28886776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28886777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28886778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28886779, 'pht': 3726}}" where mtr_portfolio_id = 28886700 and dashboard_run_id = 2651726 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`=28886700 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721681, 0.030675597624840796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28886700_25-11-2025_18_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28886768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28886769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28886770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28886771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28886772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28886773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28886774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28886775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28886776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28886777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28886778, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28886779, '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 = 28887252 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': 4114266, 'mtr_portfolio_id': 28887252, 'created_at': datetime.datetime(2025, 11, 25, 19, 4, 30), 'result': '0.04893784472568908', 'result_long': None, 'result_double': None}] Qualite : 0.04893784472568908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28887252 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887252_25-11-2025_19_04_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28887252 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887252_25-11-2025_19_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28887262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28887263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28887264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28887265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28887266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28887267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28887268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28887269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28887270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28887272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28887273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28887274, 'pht': 3726}}" where mtr_portfolio_id = 28887252 and dashboard_run_id = 2651726 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`=28887252 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721682, 0.04893784472568908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887252_25-11-2025_19_04_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28887262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28887263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28887264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28887265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28887266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28887267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28887268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28887269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28887270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28887272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28887273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28887274, '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 = 28887685 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': 4114405, 'mtr_portfolio_id': 28887685, 'created_at': datetime.datetime(2025, 11, 25, 19, 18, 59), 'result': '0.0574930742942447', 'result_long': None, 'result_double': None}] Qualite : 0.0574930742942447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28887685 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887685_25-11-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28887685 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887685_25-11-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28887694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28887695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28887696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28887697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28887698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28887699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28887700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28887701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28887702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28887703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28887704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28887705, 'pht': 3726}}" where mtr_portfolio_id = 28887685 and dashboard_run_id = 2651726 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`=28887685 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721683, 0.0574930742942447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28887685_25-11-2025_19_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28887694, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28887695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28887696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28887697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28887698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28887699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28887700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28887701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28887702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28887703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28887704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28887705, '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 = 28888354 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': 4114504, 'mtr_portfolio_id': 28888354, 'created_at': datetime.datetime(2025, 11, 25, 19, 35), 'result': '0.04958570337091864', 'result_long': None, 'result_double': None}] Qualite : 0.04958570337091864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28888354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888354_25-11-2025_19_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28888354 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888354_25-11-2025_19_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28888380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28888381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28888382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28888383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28888384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28888385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28888386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28888387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28888388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28888389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28888390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28888391, 'pht': 3726}}" where mtr_portfolio_id = 28888354 and dashboard_run_id = 2651726 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`=28888354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721684, 0.04958570337091864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888354_25-11-2025_19_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28888380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28888381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28888382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28888383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28888384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28888385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28888386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28888387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28888388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28888389, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28888390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28888391, '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 = 28888837 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': 4114569, 'mtr_portfolio_id': 28888837, 'created_at': datetime.datetime(2025, 11, 25, 19, 47, 1), 'result': '0.05479302641093808', 'result_long': None, 'result_double': None}] Qualite : 0.05479302641093808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28888837 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888837_25-11-2025_19_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28888837 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888837_25-11-2025_19_47_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28888863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28888864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28888865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28888866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28888867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28888868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28888869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28888870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28888871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28888872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28888873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28888874, 'pht': 3726}}" where mtr_portfolio_id = 28888837 and dashboard_run_id = 2651726 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`=28888837 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721685, 0.05479302641093808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28888837_25-11-2025_19_47_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28888863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28888864, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28888865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28888866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28888867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28888868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28888869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28888870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28888871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28888872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28888873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28888874, '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 = 28889268 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': 4114637, 'mtr_portfolio_id': 28889268, 'created_at': datetime.datetime(2025, 11, 25, 20, 2, 58), 'result': '0.050183512724479615', 'result_long': None, 'result_double': None}] Qualite : 0.050183512724479615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28889268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889268_25-11-2025_20_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28889268 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889268_25-11-2025_20_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28889305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28889306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28889307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28889308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28889309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28889310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28889311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28889312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28889313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28889314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28889315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28889316, 'pht': 3726}}" where mtr_portfolio_id = 28889268 and dashboard_run_id = 2651726 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`=28889268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721686, 0.050183512724479615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889268_25-11-2025_20_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28889305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28889306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28889307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28889308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28889309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28889310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28889311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28889312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28889313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28889314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28889315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28889316, '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 = 28889839 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': 4114791, 'mtr_portfolio_id': 28889839, 'created_at': datetime.datetime(2025, 11, 25, 20, 16, 58), 'result': '0.0365506656959448', 'result_long': None, 'result_double': None}] Qualite : 0.0365506656959448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28889839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889839_25-11-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28889839 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889839_25-11-2025_20_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28889932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28889933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28889935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28889936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28889937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28889939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28889940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28889941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28889942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28889943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28889944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28889945, 'pht': 3726}}" where mtr_portfolio_id = 28889839 and dashboard_run_id = 2651726 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`=28889839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721687, 0.0365506656959448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28889839_25-11-2025_20_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28889932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28889933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28889935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28889936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28889937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28889939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28889940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28889941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28889942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28889943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28889944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28889945, '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 = 28890435 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': 4114868, 'mtr_portfolio_id': 28890435, 'created_at': datetime.datetime(2025, 11, 25, 20, 32, 57), 'result': '0.0371207307035729', 'result_long': None, 'result_double': None}] Qualite : 0.0371207307035729 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28890435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28890435_25-11-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28890435 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28890435_25-11-2025_20_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28890460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28890461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28890462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28890463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28890464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28890465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28890466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28890467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28890468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28890469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28890470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28890471, 'pht': 3726}}" where mtr_portfolio_id = 28890435 and dashboard_run_id = 2651726 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`=28890435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721688, 0.0371207307035729, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28890435_25-11-2025_20_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28890460, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28890461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28890462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28890463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28890464, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28890465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28890466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28890467, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28890468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28890469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28890470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28890471, '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 = 28891002 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': 4114968, 'mtr_portfolio_id': 28891002, 'created_at': datetime.datetime(2025, 11, 25, 21, 4, 59), 'result': '0.026136614492700667', 'result_long': None, 'result_double': None}] Qualite : 0.026136614492700667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28891002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891002_25-11-2025_21_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28891002 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891002_25-11-2025_21_05_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28891053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28891054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28891055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28891056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28891057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28891058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28891059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28891060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28891061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28891062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28891063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28891064, 'pht': 3726}}" where mtr_portfolio_id = 28891002 and dashboard_run_id = 2651726 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`=28891002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721689, 0.026136614492700667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891002_25-11-2025_21_05_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28891053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28891054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28891055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28891056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28891057, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28891058, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28891059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28891060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28891061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28891062, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28891063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28891064, '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 = 28891792 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': 4115176, 'mtr_portfolio_id': 28891792, 'created_at': datetime.datetime(2025, 11, 25, 21, 18, 59), 'result': '0.06615472173736348', 'result_long': None, 'result_double': None}] Qualite : 0.06615472173736348 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28891792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891792_25-11-2025_21_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28891792 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891792_25-11-2025_21_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28891807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28891808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28891809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28891810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28891811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28891812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28891813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28891814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28891815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28891816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28891817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28891818, 'pht': 3726}}" where mtr_portfolio_id = 28891792 and dashboard_run_id = 2651726 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`=28891792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721690, 0.06615472173736348, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28891792_25-11-2025_21_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28891807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28891808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28891809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28891810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28891811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28891812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28891813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28891814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28891815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28891816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28891817, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28891818, '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 = 28892257 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': 4115258, 'mtr_portfolio_id': 28892257, 'created_at': datetime.datetime(2025, 11, 25, 21, 32, 58), 'result': '0.021172576854580856', 'result_long': None, 'result_double': None}] Qualite : 0.021172576854580856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28892257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892257_25-11-2025_21_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28892257 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892257_25-11-2025_21_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28892294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28892295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28892296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28892297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28892298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28892299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28892300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28892301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28892302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28892303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28892304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28892305, 'pht': 3726}}" where mtr_portfolio_id = 28892257 and dashboard_run_id = 2651726 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`=28892257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721691, 0.021172576854580856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892257_25-11-2025_21_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28892294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28892295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28892296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28892297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28892298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28892299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28892300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28892301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28892302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28892303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28892304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28892305, '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 = 28892643 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': 4115328, 'mtr_portfolio_id': 28892643, 'created_at': datetime.datetime(2025, 11, 25, 21, 48, 58), 'result': '0.06570099569912542', 'result_long': None, 'result_double': None}] Qualite : 0.06570099569912542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28892643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892643_25-11-2025_21_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28892643 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892643_25-11-2025_21_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28892676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28892677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28892678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28892679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28892680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28892681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28892682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28892683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28892684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28892685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28892686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28892687, 'pht': 3726}}" where mtr_portfolio_id = 28892643 and dashboard_run_id = 2651726 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`=28892643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721692, 0.06570099569912542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28892643_25-11-2025_21_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28892676, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28892677, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28892678, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28892679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28892680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28892681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28892682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28892683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28892684, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28892685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28892686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28892687, '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 = 28893235 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': 4115409, 'mtr_portfolio_id': 28893235, 'created_at': datetime.datetime(2025, 11, 25, 22, 2, 57), 'result': '0.040818254447836474', 'result_long': None, 'result_double': None}] Qualite : 0.040818254447836474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28893235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893235_25-11-2025_22_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28893235 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893235_25-11-2025_22_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28893261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28893262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28893263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28893264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28893265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28893266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28893267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28893268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28893269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28893270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28893271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28893272, 'pht': 3726}}" where mtr_portfolio_id = 28893235 and dashboard_run_id = 2651726 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`=28893235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721693, 0.040818254447836474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893235_25-11-2025_22_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28893261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28893262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28893263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28893264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28893265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28893266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28893267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28893268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28893269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28893270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28893271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28893272, '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 = 28893609 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': 4115548, 'mtr_portfolio_id': 28893609, 'created_at': datetime.datetime(2025, 11, 25, 22, 17, 33), 'result': '0.04777326708855986', 'result_long': None, 'result_double': None}] Qualite : 0.04777326708855986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28893609 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893609_25-11-2025_22_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28893609 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893609_25-11-2025_22_17_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28893626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28893627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28893628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28893629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28893630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28893631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28893632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28893633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28893635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28893636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28893637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28893638, 'pht': 3726}}" where mtr_portfolio_id = 28893609 and dashboard_run_id = 2651726 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`=28893609 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721694, 0.04777326708855986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28893609_25-11-2025_22_17_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28893626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28893627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28893628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28893629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28893630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28893631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28893632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28893633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28893635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28893636, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28893637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28893638, '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 = 28894276 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': 4115667, 'mtr_portfolio_id': 28894276, 'created_at': datetime.datetime(2025, 11, 25, 22, 33, 1), 'result': '0.04508219663890956', 'result_long': None, 'result_double': None}] Qualite : 0.04508219663890956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28894276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894276_25-11-2025_22_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28894276 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894276_25-11-2025_22_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28894277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28894278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28894279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28894280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28894281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28894282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28894283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28894284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28894285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28894286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28894287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28894288, 'pht': 3726}}" where mtr_portfolio_id = 28894276 and dashboard_run_id = 2651726 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`=28894276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721695, 0.04508219663890956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894276_25-11-2025_22_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28894277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28894278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28894279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28894280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28894281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28894282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28894283, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28894284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28894285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28894286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28894287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28894288, '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 = 28894844 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': 4115765, 'mtr_portfolio_id': 28894844, 'created_at': datetime.datetime(2025, 11, 25, 22, 46, 59), 'result': '0.03658780631548461', 'result_long': None, 'result_double': None}] Qualite : 0.03658780631548461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28894844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894844_25-11-2025_22_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28894844 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894844_25-11-2025_22_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28894865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28894866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28894867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28894868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28894869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28894870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28894871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28894872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28894873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28894874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28894875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28894876, 'pht': 3726}}" where mtr_portfolio_id = 28894844 and dashboard_run_id = 2651726 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`=28894844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721696, 0.03658780631548461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28894844_25-11-2025_22_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28894865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28894866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28894867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28894868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28894869, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28894870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28894871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28894872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28894873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28894874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28894875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28894876, '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 = 28895364 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': 4115814, 'mtr_portfolio_id': 28895364, 'created_at': datetime.datetime(2025, 11, 25, 23, 3), 'result': '0.07031187834722759', 'result_long': None, 'result_double': None}] Qualite : 0.07031187834722759 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28895364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28895364_25-11-2025_23_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28895364 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28895364_25-11-2025_23_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28895373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28895374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28895375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28895376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28895377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28895378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28895379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28895380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28895381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28895382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28895383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28895384, 'pht': 3726}}" where mtr_portfolio_id = 28895364 and dashboard_run_id = 2651726 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`=28895364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721697, 0.07031187834722759, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28895364_25-11-2025_23_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28895373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28895374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28895375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28895376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28895377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28895378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28895379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28895380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28895381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28895382, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28895383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28895384, '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 = 28896031 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': 4115984, 'mtr_portfolio_id': 28896031, 'created_at': datetime.datetime(2025, 11, 25, 23, 14, 59), 'result': '0.05349155369761922', 'result_long': None, 'result_double': None}] Qualite : 0.05349155369761922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28896031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28896031_25-11-2025_23_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28896031 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28896031_25-11-2025_23_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28896036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28896037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28896038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28896039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28896040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28896041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28896042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28896043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28896044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28896045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28896046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28896047, 'pht': 3726}}" where mtr_portfolio_id = 28896031 and dashboard_run_id = 2651726 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`=28896031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17721698, 0.05349155369761922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28896031_25-11-2025_23_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28896036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28896037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28896038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28896039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28896040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28896041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28896042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28896043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28896044, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28896045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28896046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28896047, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28852271,28852822,28853228,28853609,28854780,28855135,28855515,28856051,28856612,28856969,28857434,28857940,28858383,28858949,28859371,28861206,28861760,28861865,28862315,28862718,28863032,28863460,28863885,28864225,28864941,28865470,28865867,28866549,28867206,28867879,28868327,28869708,28870046,28870794,28871356,28872178,28872840,28873439,28874056,28874733,28875448,28875665,28877780,28877995,28878336,28878801,28879255,28879540,28880010,28880719,28880933,28881391,28881908,28882494,28882965,28883479,28883892,28884461,28885731,28886248,28886700,28887252,28887685,28888354,28888837,28889268,28889839,28890435,28891002,28891792,28892257,28892643,28893235,28893609,28894276,28894844,28895364,28896031) result : ((1395986523,), (1395986530,), (1395986538,), (1395986562,), (1395986615,), (1395986617,), (1395986634,), (1395986650,), (1395986669,), (1395986712,), (1395987195,), (1395987196,), (1395987197,), (1395987203,), (1395987237,), (1395987363,), (1395987365,), (1395987367,), (1395987370,), (1395987387,), (1395987388,), (1395987391,), (1395987393,), (1395987397,), (1395987400,), (1395987416,), (1395987429,), (1395987440,), (1395987442,), (1395987444,), (1395987448,), (1395987524,), (1395987525,), (1395987526,), (1395987657,), (1395987695,), (1395987733,), (1395987743,), (1395987746,), (1395987827,), (1395987830,), (1395987832,), (1395987835,), (1395987838,), (1395987847,), (1395987871,), (1395987873,), (1395987877,), (1395987882,), (1395987886,), (1395987889,), (1395987892,), (1395987893,), (1395987895,), (1395987897,), (1395987899,), (1395987929,), (1395987930,), (1395987933,), (1395987935,), (1395987940,), (1395987941,), (1395987943,), (1395987945,), (1395988007,), (1395988009,), (1395988011,), (1395988014,), (1395988015,), (1395988016,), (1395988020,), (1395988021,), (1395988024,), (1395988028,), (1395988032,), (1395988035,), (1395988053,), (1395988054,), (1395988055,), (1395988057,), (1395988063,), (1395988085,), (1395988089,), (1395988093,), (1395988098,), (1395988150,), (1395988135,), (1395988141,), (1395988142,), (1395988144,), (1395988148,), (1395988188,), (1395988189,), (1395988191,), (1395988193,), (1395988197,), (1395988432,), (1395988433,), (1395988436,), (1395988442,), (1395988587,), (1395988589,), (1395988591,), (1395989172,), (1395989237,), (1395989279,), (1395989320,), (1395989375,), (1395989434,), (1395989571,), (1395989572,), (1395989573,), (1395989575,), (1395989578,), (1395989833,), (1395989834,), (1395989859,), (1395989932,), (1395989933,), (1395989934,), (1395989961,), (1395989963,), (1395989965,), (1395989968,), (1395989972,), (1395989984,), (1395989987,), (1395989991,), (1395989996,), (1395990011,), (1395990013,), (1395990015,), (1395990018,), (1395990021,), (1395990033,), (1395990035,), (1395990037,), (1395990039,), (1395990069,), (1395990070,), (1395990071,), (1395990073,), (1395990124,), (1395990125,), (1395990126,), (1395990363,), (1395990366,), (1395990399,), (1395990406,), (1395990410,), (1395990415,), (1395990443,), (1395990453,), (1395990455,), (1395990456,), (1395990458,), (1395990460,), (1395990461,), (1395990489,), (1395990490,), (1395990492,), (1395990555,), (1395990562,), (1395990563,), (1395990564,), (1395990565,), (1395990432,), (1395990434,), (1395990435,), (1395990438,), (1395990441,), (1395990484,), (1395990486,), (1395990488,), (1395990505,), (1395990509,), (1395990518,), (1395990526,), (1395990528,), (1395990529,), (1395990533,), (1395990534,), (1395990539,), (1395990548,), (1395990552,), (1395990569,), (1395990573,), (1395990577,), (1395990587,), (1395990591,), (1395990615,), (1395990616,), (1395990628,), (1395990652,), (1395990683,), (1395990767,), (1395990769,), (1395990772,), (1395990777,), (1395990798,), (1395990800,), (1395990802,), (1395990805,), (1395990809,), (1395990823,), (1395990824,), (1395990825,), (1395990827,), (1395990870,), (1395990872,), (1395990875,), (1395990878,), (1395990881,), (1395990885,), (1395990892,), (1395990895,), (1395990898,), (1395990901,), (1395990907,), (1395990909,), (1395990912,), (1395990939,), (1395990941,), (1395990943,), (1395990946,), (1395990950,), (1395990953,), (1395990966,), (1395990967,), (1395990968,), (1395990970,), (1395990982,), (1395991015,), (1395991017,), (1395991019,), (1395991029,), (1395991066,), (1395991267,), (1395991277,), (1395991296,), (1395991300,), (1395991305,), (1395991401,), (1395991381,), (1395991383,), (1395991385,), (1395991454,), (1395991455,), (1395991456,), (1395991458,), (1395991461,), (1395991487,), (1395991489,), (1395991491,), (1395991494,), (1395991516,), (1395991523,), (1395991527,), (1395991529,), (1395991533,), (1395991535,), (1395991549,), (1395991551,), (1395991553,), (1395991556,), (1395991559,), (1395991560,), (1395991566,), (1395991568,), (1395991570,), (1395991572,), (1395991574,), (1395991580,), (1395991588,), (1395991592,), (1395991596,), (1395991619,), (1395991621,), (1395991625,), (1395991633,), (1395991684,), (1395991746,), (1395991748,), (1395991750,), (1395991769,), (1395991771,), (1395991773,), (1395991776,), (1395991793,), (1395991795,), (1395991798,), (1395991803,), (1395991808,), (1395991854,), (1395991858,), (1395991862,), (1395991867,), (1395991870,), (1395991881,), (1395991885,), (1395991890,), (1395991918,), (1395993393,), (1395993394,), (1395993396,), (1395993399,), (1395993403,), (1395993407,), (1395993429,), (1395993431,), (1395993433,), (1395993455,), (1395993456,), (1395993489,), (1395993491,), (1395993498,), (1395993507,), (1395993518,), (1395993538,), (1395993539,), (1395993540,), (1395993542,), (1395993569,), (1395993570,), (1395993571,), (1395993610,), (1395993611,), (1395993612,), (1395993614,), (1395993618,), (1395993622,), (1395993648,), (1395993650,), (1395993653,), (1395993657,), (1395993661,), (1395993664,), (1395993672,), (1395993674,), (1395993675,), (1395993676,), (1395993677,), (1395993678,), (1395993681,), (1395993684,), (1395993688,), (1395993691,), (1395993705,), (1395993707,), (1395993709,), (1395993712,), (1395993738,), (1395993739,), (1395993740,), (1395993742,), (1395993763,), (1395993768,), (1395993771,), (1395993773,), (1395993777,), (1395993789,), (1395993791,), (1395993794,), (1395993797,), (1395993839,), (1395993828,), (1395993830,), (1395993832,), (1395993835,), (1395993852,), (1395993854,), (1395993856,), (1395993859,), (1395993862,), (1395993875,), (1395993877,), (1395993879,), (1395993901,), (1395993903,), (1395993905,), (1395993924,), (1395993928,), (1395993931,), (1395993935,), (1395993939,), (1395993942,), (1395993949,), (1395993951,), (1395993953,), (1395993956,), (1395993960,), (1395993964,), (1395993987,), (1395993989,), (1395993992,), (1395994010,), (1395994011,), (1395994012,), (1395994014,), (1395994018,), (1395994020,), (1395994031,), (1395994033,), (1395994035,), (1395994064,), (1395994066,), (1395994068,), (1395994091,), (1395994093,), (1395994113,), (1395994115,), (1395994116,), (1395994118,), (1395994122,), (1395994145,), (1395994147,), (1395994149,), (1395994172,), (1395994174,), (1395994177,), (1395994190,), (1395994193,), (1395994296,), (1395994262,), (1395994837,), (1395994868,), (1395994900,), (1395994933,), (1395994981,), (1395995453,), (1395995484,), (1395995514,), (1395995545,), (1395995579,), (1395995719,), (1395995721,), (1395995752,), (1395995783,), (1395995818,), (1395996016,), (1395996029,), (1395996030,), (1395996033,), (1395996070,), (1395996314,), (1395996346,), (1395996378,), (1395996413,), (1395996451,), (1395996812,), (1395996844,), (1395996874,), (1395996907,), (1395997267,), (1395997278,), (1395997311,), (1395997343,), (1395997381,), (1395997417,), (1395998050,), (1395998145,), (1395998209,), (1395998279,), (1395998740,), (1395998741,), (1395998744,), (1395998775,), (1395999130,), (1395999165,), (1395999196,), (1395999224,), (1395999228,), (1395999230,), (1395999296,), (1395999298,), (1395999300,), (1395999308,), (1395999316,), (1395999348,), (1395999349,), (1395999392,), (1395999393,), (1395999394,), (1395999396,), (1395999400,), (1395999413,), (1395999415,), (1395999418,), (1395999421,), (1395999423,), (1395999427,), (1395999462,), (1395999458,), (1395999460,), (1395999511,), (1395999542,), (1395999544,), (1395999548,), (1395999555,), (1395999559,), (1395999561,), (1395999571,), (1395999574,), (1395999578,), (1395999582,), (1395999585,), (1395999586,), (1395999590,), (1395999601,), (1395999609,), (1395999610,), (1395999611,), (1395999629,), (1395999642,), (1395999646,), (1395999650,), (1395999653,), (1395999664,), (1395999666,), (1395999668,), (1395999671,), (1395999675,), (1395999707,), (1395999708,), (1395999709,), (1395999711,), (1395999714,), (1395999717,), (1395999730,), (1395999732,), (1395999734,), (1395999737,), (1395999740,), (1395999744,), (1395999750,), (1395999774,), (1395999775,), (1395999777,), (1395999780,), (1395999786,), (1395999805,), (1395999806,), (1395999807,), (1395999809,), (1395999845,), (1395999847,), (1395999849,), (1395999856,), (1395999860,), (1395999875,), (1395999877,), (1395999880,), (1395999898,), (1395999900,), (1395999902,), (1395999905,), (1395999909,), (1395999937,), (1396000043,), (1396000045,), (1396000077,), (1396000079,), (1396000081,), (1396000098,), (1396000102,), (1396000154,), (1396000156,), (1396000403,), (1396000411,), (1396000420,), (1396000426,), (1396000429,), (1396000603,), (1396000608,), (1396000609,), (1396000628,), (1396000630,), (1396000633,), (1396000638,), (1396000644,), (1396000650,), (1396000672,), (1396000662,), (1396000663,), (1396000670,), (1396000690,), (1396000692,), (1396000694,), (1396000710,), (1396000712,), (1396000714,), (1396000716,), (1396000718,), (1396000721,), (1396000745,), (1396000746,), (1396000747,), (1396000749,), (1396000752,), (1396000770,), (1396000772,), (1396000774,), (1396000777,), (1396000794,), (1396000816,), (1396000818,), (1396000820,), (1396000823,), (1396000827,), (1396000831,), (1396000851,), (1396000854,), (1396000866,), (1396000869,), (1396000873,), (1396000892,), (1396000893,), (1396000894,), (1396000913,), (1396000915,), (1396000919,), (1396000924,), (1396000928,), (1396000940,), (1396000941,), (1396000942,), (1396000944,), (1396000947,), (1396000950,), (1396000968,), (1396000969,), (1396000971,), (1396001003,), (1396001038,), (1396001070,), (1396001105,), (1396001139,), (1396001201,), (1396001828,), (1396001832,), (1396001836,), (1396001841,), (1396001844,), (1396001852,), (1396001853,), (1396001855,), (1396001857,), (1396001876,), (1396001868,), (1396001870,), (1396001871,), (1396001873,), (1396002122,), (1396002158,), (1396002196,), (1396002228,), (1396002264,), (1396002619,), (1396002620,), (1396002622,), (1396002625,), (1396002629,), (1396002633,), (1396002804,), (1396002805,), (1396002807,), (1396002824,), (1396002881,), (1396002941,), (1396003342,), (1396003372,), (1396003401,), (1396003432,), (1396003729,), (1396003731,), (1396003733,), (1396003760,), (1396003792,), (1396003828,), (1396003916,), (1396003917,), (1396003918,), (1396003920,), (1396003947,), (1396003950,), (1396003953,), (1396003956,), (1396003959,), (1396003962,), (1396003966,), (1396003967,), (1396003972,), (1396003973,), (1396003975,), (1396003978,), (1396003981,), (1396003986,), (1396004011,), (1396004014,), (1396004017,), (1396004021,), (1396004038,), (1396004040,), (1396004042,), (1396004044,), (1396004047,), (1396004050,), (1396004062,), (1396004063,), (1396004064,), (1396004066,), (1396004070,), (1396004085,), (1396004086,), (1396004087,), (1396004089,), (1396004092,), (1396004096,), (1396004140,), (1396004141,), (1396004142,), (1396004160,), (1396004164,), (1396004167,), (1396004170,), (1396004192,), (1396004184,), (1396004186,), (1396004187,), (1396004189,), (1396004225,), (1396004226,), (1396004263,), (1396004264,), (1396004265,), (1396004267,), (1396004271,), (1396004291,), (1396004293,), (1396004295,), (1396004313,), (1396004315,), (1396004317,), (1396004320,), (1396004324,), (1396004350,), (1396004353,), (1396004354,), (1396004355,), (1396004359,), (1396004361,), (1396004379,), (1396004381,), (1396004443,), (1396004444,), (1396004445,), (1396004447,), (1396004449,), (1396004470,), (1396004472,), (1396004474,), (1396004477,), (1396004510,), (1396004512,), (1396004514,), (1396004516,), (1396004519,), (1396004530,), (1396004531,), (1396004532,), (1396004551,), (1396004624,), (1396004673,), (1396004666,), (1396004667,), (1396004670,), (1396004713,), (1396004715,), (1396004734,), (1396005146,), (1396005147,), (1396005148,), (1396005150,), (1396005152,), (1396005179,), (1396005349,), (1396005352,), (1396005399,), (1396005401,), (1396005404,), (1396005409,), (1396005423,), (1396005424,), (1396005425,), (1396005427,), (1396005432,), (1396005546,), (1396005556,), (1396005667,), (1396005669,), (1396005671,), (1396005679,), (1396005713,), (1396005714,), (1396005715,), (1396005717,), (1396005733,), (1396005734,), (1396005765,), (1396005767,), (1396005769,), (1396005771,), (1396005774,), (1396005785,), (1396005787,), (1396005814,), (1396005806,), (1396005807,), (1396005808,), (1396005810,), (1396005829,), (1396005834,), (1396005844,), (1396005854,), (1396005880,), (1396005881,), (1396005882,), (1396005884,), (1396005888,), (1396005911,), (1396005912,), (1396005913,), (1396005915,), (1396005918,), (1396005932,), (1396005961,), (1396005962,), (1396005964,), (1396005966,), (1396005969,), (1396005983,), (1396005984,), (1396005985,), (1396005987,), (1396006017,), (1396006019,), (1396006022,), (1396006026,), (1396006050,), (1396006052,), (1396006054,), (1396006057,), (1396006078,), (1396006079,), (1396006080,), (1396006103,), (1396006105,), (1396006107,), (1396006110,), (1396006113,), (1396006145,), (1396006150,), (1396006187,), (1396006188,), (1396006189,), (1396006306,), (1396006341,), (1396006375,), (1396006409,), (1396006446,), (1396006633,), (1396006698,), (1396006764,), (1396007435,), (1396007106,), (1396007174,), (1396007239,), (1396007307,), (1396007373,), (1396007663,), (1396007713,), (1396007759,), (1396007775,), (1396007780,), (1396007999,), (1396008001,), (1396008003,), (1396008031,), (1396008032,), (1396008033,), (1396008035,), (1396008039,), (1396008063,), (1396008064,), (1396008066,), (1396008069,), (1396008105,), (1396008106,), (1396008109,), (1396008118,), (1396008122,), (1396008125,), (1396008139,), (1396008141,), (1396008146,), (1396008150,), (1396008161,), (1396008168,), (1396008192,), (1396008194,), (1396008199,), (1396008202,), (1396008226,), (1396008227,), (1396008228,), (1396008230,), (1396008264,), (1396008266,), (1396008268,), (1396008271,), (1396008305,), (1396008307,), (1396008310,), (1396008315,), (1396008338,), (1396016911,), (1396016892,), (1396018578,), (1396018580,), (1396018582,), (1396018584,), (1396018614,), (1396018647,), (1396018678,), (1396018782,), (1396018814,), (1396018817,), (1396018821,), (1396018824,), (1396018827,), (1396018831,), (1396018836,), (1396018837,), (1396018838,), (1396018840,), (1396018843,), (1396018846,), (1396018918,), (1396018944,), (1396018950,), (1396018967,), (1396018979,), (1396018981,), (1396018983,), (1396018986,), (1396019106,), (1396020518,), (1396020516,), (1396020537,), (1396020538,), (1396020539,), (1396020541,), (1396020579,), (1396020581,), (1396020583,), (1396020586,), (1396020590,), (1396020601,), (1396020606,), (1396020608,), (1396020612,), (1396020616,), (1396020619,), (1396020644,), (1396020647,), (1396020652,), (1396020655,), (1396020658,), (1396020661,), (1396020664,), (1396020665,), (1396020668,), (1396020692,), (1396020674,), (1396020677,), (1396020680,), (1396020683,), (1396020686,), (1396020705,), (1396020707,), (1396020709,), (1396020725,), (1396020727,), (1396020729,), (1396020732,), (1396020736,), (1396020737,), (1396020750,), (1396020752,), (1396020754,), (1396020757,), (1396020787,), (1396020789,), (1396020818,), (1396020821,), (1396020836,), (1396020837,), (1396020838,), (1396020839,), (1396020865,), (1396020875,), (1396020877,), (1396020880,), (1396020884,), (1396020887,), (1396020898,), (1396020899,), (1396020900,), (1396020902,), (1396020906,), (1396020924,), (1396020926,), (1396020928,), (1396020943,), (1396020945,), (1396020947,), (1396020950,), (1396020970,), (1396020972,), (1396020979,), (1396020983,), (1396021002,), (1396021004,), (1396021007,), (1396021012,), (1396021016,), (1396021036,), (1396021039,), (1396021043,), (1396021047,), (1396021051,), (1396021064,), (1396021065,), (1396021067,), (1396021102,), (1396021087,), (1396021088,), (1396021089,), (1396021096,), (1396021125,), (1396021126,), (1396021127,), (1396021129,), (1396021133,), (1396021158,), (1396021159,), (1396021161,), (1396021165,), (1396021169,), (1396021172,), (1396021181,), (1396021182,), (1396021183,), (1396021187,), (1396021188,), (1396021191,), (1396021195,), (1396021210,), (1396021212,), (1396021236,), (1396021238,), (1396021240,), (1396021243,), (1396021277,), (1396021278,), (1396021281,), (1396021283,), (1396021287,), (1396021300,), (1396021302,), (1396021304,), (1396021307,), (1396021311,), (1396021346,), (1396021347,), (1396021348,), (1396021363,), (1396021366,), (1396021370,), (1396021374,), (1396021378,), (1396021383,), (1396021388,), (1396021398,), (1396021405,), (1396021409,), (1396021948,), (1396022077,), (1396022120,), (1396022152,), (1396022153,), (1396022317,), (1396022287,), (1396022291,), (1396022314,), (1396022359,), (1396022388,), (1396022390,), (1396022392,), (1396022395,), (1396022421,), (1396022423,), (1396022425,), (1396022441,), (1396022889,), (1396022923,), (1396022954,), (1396023256,), (1396023323,), (1396023390,), (1396023457,), (1396023524,), (1396023561,), (1396023856,), (1396023859,), (1396023882,), (1396023884,), (1396023929,), (1396023931,), (1396023933,), (1396023936,), (1396023940,), (1396023944,), (1396023958,), (1396023959,), (1396023960,), (1396023962,), (1396023965,), (1396023968,), (1396023982,), (1396023984,), (1396023989,), (1396023993,), (1396023997,), (1396023999,), (1396024007,), (1396024009,), (1396024011,), (1396024015,), (1396024016,), (1396024018,), (1396024022,), (1396024026,), (1396024034,), (1396024045,), (1396024047,), (1396024052,), (1396024062,), (1396024074,), (1396024111,), (1396024112,), (1396024113,), (1396024145,), (1396024153,), (1396024155,), (1396024157,), (1396024160,), (1396024176,), (1396024177,), (1396024179,), (1396024181,), (1396024184,), (1396024213,), (1396024206,), (1396024208,), (1396024210,), (1396024235,), (1396024236,), (1396024239,), (1396024252,), (1396024260,), (1396024279,), (1396024280,), (1396024281,), (1396024283,), (1396024287,), (1396024291,), (1396024316,), (1396024318,), (1396024320,), (1396024323,), (1396024354,), (1396024355,), (1396024356,), (1396024358,), (1396024362,), (1396024365,), (1396024378,), (1396024380,), (1396024382,), (1396024384,), (1396024387,), (1396024389,), (1396024413,), (1396024414,), (1396024415,), (1396024469,), (1396024472,), (1396024476,), (1396024481,), (1396024493,), (1396024506,), (1396024517,), (1396024519,), (1396024523,), (1396024555,), (1396024556,), (1396024557,), (1396024559,), (1396024563,), (1396024568,), (1396024583,), (1396024585,), (1396024618,), (1396024619,), (1396024620,), (1396024628,), (1396024631,), (1396024670,), (1396024671,), (1396024672,), (1396024674,), (1396024678,), (1396024681,), (1396024703,), (1396024706,), (1396024708,), (1396024711,), (1396024715,), (1396024718,), (1396024733,), (1396024734,), (1396024736,), (1396024746,), (1396024751,), (1396024756,), (1396024776,), (1396024779,), (1396024782,), (1396024785,), (1396024801,), (1396024791,), (1396024795,), (1396024799,), (1396024807,), (1396024809,), (1396024811,), (1396024813,), (1396024817,), (1396024821,), (1396024831,), (1396024833,), (1396024835,), (1396024837,), (1396024868,), (1396024869,), (1396024871,), (1396024874,), (1396024877,), (1396024879,), (1396024891,), (1396024893,), (1396024895,), (1396024901,), (1396024931,), (1396024933,), (1396024935,), (1396024938,), (1396024942,), (1396024957,), (1396024959,), (1396024961,), (1396025019,), (1396025020,), (1396025022,), (1396025026,), (1396025030,), (1396025034,), (1396025047,), (1396025050,), (1396025054,), (1396025059,), (1396025075,), (1396025078,), (1396025083,), (1396025104,), (1396025105,), (1396025108,), (1396025116,), (1396025121,), (1396025145,), (1396025146,), (1396025147,), (1396025149,), (1396025151,), (1396025232,), (1396025236,), (1396025237,), (1396025239,), (1396025266,), (1396025267,), (1396025268,), (1396025270,), (1396025274,), (1396025277,), (1396025295,), (1396025297,), (1396025298,), (1396025362,), (1396025382,), (1396025384,), (1396025385,), (1396025388,), (1396025450,), (1396025452,), (1396025455,), (1396025459,), (1396025463,), (1396025466,), (1396025475,), (1396025477,), (1396025486,), (1396025487,), (1396025488,), (1396025490,), (1396025494,), (1396025496,), (1396025580,), (1396025613,), (1396025648,), (1396026122,), (1396026143,), (1396026146,), (1396026151,), (1396026156,), (1396026161,), (1396026343,), (1396026356,), (1396026359,), (1396026362,), (1396026366,), (1396026511,), (1396026512,), (1396026513,), (1396026515,), (1396026757,), (1396026759,), (1396026761,), (1396026764,), (1396026767,), (1396026796,), (1396026798,), (1396026800,), (1396026803,), (1396026807,), (1396026825,), (1396026827,), (1396026829,), (1396026851,), (1396026852,), (1396026853,), (1396026855,), (1396026875,), (1396026876,), (1396026878,), (1396026881,), (1396026885,), (1396026889,), (1396027227,), (1396027230,), (1396027233,), (1396027235,), (1396027247,), (1396027249,), (1396027252,), (1396027280,), (1396027261,), (1396027265,), (1396027269,), (1396027272,), (1396027478,), (1396027511,), (1396027542,), (1396027574,), (1396027984,), (1396028024,), (1396028284,), (1396028320,), (1396028325,), (1396028327,), (1396028346,), (1396028419,), (1396028421,), (1396028423,), (1396028426,), (1396028428,), (1396028432,), (1396028464,), (1396028467,), (1396028468,), (1396028470,), (1396028490,), (1396028492,), (1396028494,), (1396028497,), (1396028501,), (1396028503,), (1396028519,), (1396028520,), (1396028521,), (1396028523,), (1396028524,), (1396028529,), (1396028550,), (1396028552,), (1396028554,), (1396028557,), (1396028561,), (1396028565,), (1396028743,), (1396028776,), (1396028809,), (1396028845,), (1396028887,), (1396028920,), (1396029048,), (1396029079,), (1396029114,), (1396029145,), (1396029168,), (1396029169,), (1396029172,), (1396029176,), (1396029180,), (1396029559,), (1396029589,), (1396029604,), (1396029607,), (1396029613,), (1396029649,), (1396029951,), (1396029955,), (1396029984,), (1396030016,), (1396030018,), (1396030038,), (1396030040,), (1396030042,), (1396030045,), (1396030068,), (1396030071,), (1396030074,), (1396030079,), (1396030288,), (1396030128,), (1396030146,), (1396030178,), (1396030213,), (1396030249,), (1396030349,), (1396030350,), (1396030355,), (1396030390,), (1396030427,), (1396030429,), (1396030431,), (1396030433,), (1396030456,), (1396030458,), (1396030460,), (1396030463,), (1396030546,), (1396030587,), (1396031014,), (1396031046,), (1396031076,), (1396031124,), (1396031180,), (1396031564,), (1396031592,), (1396031637,), (1396032099,), (1396032101,), (1396032118,), (1396032168,), (1396032169,), (1396032170,), (1396032172,), (1396032205,), (1396032207,), (1396032209,), (1396032232,), (1396032233,), (1396032234,), (1396032236,), (1396032266,), (1396032268,), (1396032270,), (1396032273,), (1396032277,), (1396032294,), (1396032296,), (1396032299,), (1396032304,), (1396032309,), (1396032341,), (1396032345,), (1396032349,), (1396032351,), (1396032354,), (1396032358,), (1396032364,), (1396032365,), (1396032367,), (1396032382,), (1396032371,), (1396032374,), (1396032376,), (1396032379,), (1396032413,), (1396032414,), (1396032422,), (1396032472,), (1396032480,), (1396032486,), (1396032489,), (1396032493,), (1396032496,), (1396032515,), (1396032516,), (1396032517,), (1396032520,), (1396032525,), (1396032546,), (1396032547,), (1396032549,), (1396032573,), (1396032574,), (1396032575,), (1396032577,), (1396032581,), (1396032583,), (1396032620,), (1396032622,), (1396032646,), (1396032651,), (1396032655,), (1396032673,), (1396032675,), (1396032678,), (1396032682,), (1396032686,), (1396032688,), (1396032697,), (1396032699,), (1396032701,), (1396032705,), (1396032706,), (1396032708,), (1396032712,), (1396032717,), (1396032720,), (1396032748,), (1396032751,), (1396032754,), (1396032758,), (1396032761,), (1396032764,), (1396032774,), (1396032777,), (1396032778,), (1396032813,), (1396032830,), (1396032849,), (1396032857,), (1396032861,), (1396032865,), (1396032944,), (1396032952,), (1396032955,), (1396032957,), (1396032961,), (1396032964,), (1396032968,), (1396032970,), (1396032971,), (1396032972,), (1396032974,), (1396032977,), (1396032991,), (1396032998,), (1396033003,), (1396033013,), (1396033019,), (1396033021,), (1396033024,), (1396033027,), (1396033046,), (1396033047,), (1396033049,), (1396033051,), (1396033054,), (1396033087,), (1396033081,), (1396033083,), (1396033084,), (1396033114,), (1396033115,), (1396033116,), (1396033118,), (1396033121,), (1396033123,), (1396033159,), (1396033161,), (1396033163,), (1396033166,), (1396033169,), (1396033188,), (1396033189,), (1396033190,), (1396033192,), (1396033224,), (1396033226,), (1396033228,), (1396033231,), (1396033234,), (1396033237,), (1396033254,), (1396033255,), (1396033256,), (1396033258,), (1396033262,), (1396033264,), (1396033289,), (1396033292,), (1396033294,), (1396033297,), (1396033301,), (1396033304,), (1396033357,), (1396033358,), (1396033359,), (1396033490,), (1396033521,), (1396033553,), (1396033579,), (1396033583,), (1396033672,), (1396033673,), (1396033674,), (1396033688,), (1396033722,), (1396033784,), (1396033786,), (1396033788,), (1396033811,), (1396033812,), (1396033813,), (1396033818,), (1396033829,), (1396033859,), (1396033861,), (1396033863,), (1396033866,), (1396033870,), (1396033873,), (1396034202,), (1396034216,), (1396034224,), (1396034228,), (1396034490,), (1396034610,), (1396034644,), (1396034676,), (1396035125,), (1396035129,), (1396035133,), (1396034308,), (1396034345,), (1396034386,), (1396034421,), (1396034455,), (1396035086,), (1396035107,), (1396035122,), (1396035195,), (1396035225,), (1396035260,), (1396035292,), (1396035330,), (1396035397,), (1396035428,), (1396035438,), (1396035460,), (1396035474,), (1396035519,), (1396035520,), (1396035525,), (1396035578,), (1396035581,), (1396035585,), (1396035615,), (1396035686,), (1396035690,), (1396035696,), (1396035698,), (1396035710,), (1396035718,), (1396035735,), (1396035736,), (1396035743,), (1396035776,), (1396035778,), (1396035781,), (1396035786,), (1396035820,), (1396035825,), (1396035827,), (1396035830,), (1396035834,), (1396035860,), (1396035873,), (1396035876,), (1396035878,), (1396035882,), (1396035898,), (1396035899,), (1396035908,), (1396035944,), (1396036091,), (1396036092,), (1396036094,), (1396036097,), (1396036118,), (1396036120,), (1396036122,), (1396036125,), (1396036130,), (1396036153,), (1396036155,), (1396036158,), (1396036161,), (1396036195,), (1396036184,), (1396036186,), (1396036188,), (1396036191,), (1396036215,), (1396036216,), (1396036218,), (1396036221,), (1396036225,), (1396036255,), (1396036256,), (1396036257,), (1396036283,), (1396036286,), (1396036661,), (1396036697,), (1396036728,), (1396036994,), (1396036996,), (1396036998,), (1396037603,), (1396037636,), (1396037648,), (1396037855,), (1396037856,), (1396037858,), (1396037861,), (1396037887,), (1396037894,), (1396037900,), (1396037905,), (1396037930,), (1396037933,), (1396037938,), (1396037944,), (1396037965,), (1396037966,), (1396037967,), (1396037969,), (1396038003,), (1396038004,), (1396038006,), (1396038008,), (1396038013,), (1396038016,), (1396038039,), (1396038040,), (1396038041,), (1396038043,), (1396038050,), (1396038082,), (1396038083,), (1396038084,), (1396038086,), (1396038112,), (1396038113,), (1396038115,), (1396038117,), (1396038128,), (1396038180,), (1396038237,), (1396038167,), (1396038171,), (1396038175,), (1396038178,), (1396038208,), (1396038213,), (1396038214,), (1396038215,), (1396038216,), (1396038217,), (1396038222,), (1396038225,), (1396038229,), (1396038232,), (1396038235,), (1396038271,), (1396038272,), (1396038295,), (1396038333,), (1396038334,), (1396038377,), (1396038378,), (1396038412,), (1396038415,), (1396038420,), (1396038424,), (1396038428,), (1396038432,), (1396038444,), (1396038446,), (1396038448,), (1396038451,), (1396038516,), (1396038524,), (1396038526,), (1396038530,), (1396038549,), (1396038552,), (1396038555,), (1396038582,), (1396038598,), (1396038603,), (1396038616,), (1396038620,), (1396038640,), (1396038679,), (1396038684,), (1396038686,), (1396038692,), (1396038695,), (1396038715,), (1396038716,), (1396038717,), (1396038720,), (1396038748,), (1396038750,), (1396038814,), (1396038812,), (1396038813,), (1396038835,), (1396038837,), (1396038839,), (1396038841,), (1396038859,), (1396038860,), (1396038861,), (1396038890,), (1396038892,), (1396038894,), (1396038896,), (1396038897,), (1396038916,), (1396038917,), (1396038918,), (1396038951,), (1396038953,), (1396038955,), (1396038959,), (1396038963,), (1396038981,), (1396038982,), (1396038983,), (1396038985,), (1396039008,), (1396039010,), (1396039011,), (1396039017,), (1396039021,), (1396039025,), (1396039071,), (1396039072,), (1396039073,), (1396039075,), (1396039078,), (1396039081,), (1396039095,), (1396039096,), (1396039097,), (1396039099,), (1396039123,), (1396039126,), (1396039129,), (1396039166,), (1396039167,), (1396039168,), (1396039170,), (1396039174,), (1396039320,), (1396039355,), (1396039392,), (1396039512,), (1396039515,), (1396039516,), (1396043047,), (1396043091,), (1396043094,), (1396043177,), (1396043178,), (1396043201,), (1396043203,), (1396043232,), (1396043233,), (1396043234,), (1396043236,), (1396043245,), (1396043270,), (1396043272,), (1396043274,), (1396043277,), (1396043296,), (1396043297,), (1396043298,), (1396043300,), (1396043304,), (1396043392,), (1396043410,), (1396043413,), (1396043435,), (1396043436,), (1396043437,), (1396043439,), (1396043444,), (1396043447,), (1396043538,), (1396043557,), (1396043559,), (1396043843,), (1396043845,), (1396043848,), (1396043975,), (1396043958,), (1396043961,), (1396044066,), (1396044068,), (1396044074,), (1396044091,), (1396044098,), (1396044102,), (1396044405,), (1396044420,), (1396044427,), (1396044429,), (1396044458,), (1396044480,), (1396044495,), (1396044496,), (1396044497,), (1396044499,), (1396044607,), (1396044609,), (1396044611,), (1396044613,), (1396044640,), (1396044671,), (1396044782,), (1396044785,), (1396044816,), (1396044830,), (1396044833,), (1396044862,), (1396044933,), (1396044952,), (1396044961,), (1396044963,), (1396045109,), (1396045131,), (1396045132,), (1396045156,), (1396045167,), (1396045182,), (1396045228,), (1396045230,), (1396045232,), (1396045235,), (1396045239,), (1396045258,), (1396045260,), (1396045261,), (1396045263,), (1396045303,), (1396045305,), (1396045310,), (1396045318,), (1396045322,), (1396045808,), (1396045874,), (1396045923,), (1396045956,), (1396045991,), (1396046027,), (1396046203,), (1396046222,), (1396046255,), (1396046315,), (1396046386,), (1396046418,), (1396046626,), (1396046679,), (1396046742,), (1396046789,), (1396047262,), (1396047309,), (1396047381,), (1396047389,), (1396047392,), (1396047442,), (1396047638,), (1396047689,), (1396047866,), (1396047855,), (1396047860,), (1396047900,), (1396047902,), (1396047903,), (1396047905,), (1396047914,), (1396047917,), (1396047966,), (1396047967,), (1396047969,), (1396047972,), (1396048417,), (1396048472,), (1396048488,), (1396048492,), (1396048684,), (1396048686,), (1396048709,), (1396048730,), (1396048735,), (1396049009,), (1396049033,), (1396049036,), (1396049061,), (1396049072,), (1396049142,), (1396049144,), (1396049145,), (1396049148,), (1396049187,), (1396049218,), (1396049250,), (1396049282,), (1396049432,), (1396049433,), (1396049434,), (1396049436,), (1396049461,), (1396049463,), (1396049464,), (1396049466,), (1396049486,), (1396049487,), (1396049508,), (1396049510,), (1396049516,), (1396049525,), (1396049545,), (1396049548,), (1396049551,), (1396049554,), (1396049605,), (1396049637,), (1396049669,), (1396049703,), (1396049722,), (1396049834,), (1396049835,), (1396049836,), (1396049838,), (1396049856,), (1396050313,), (1396050218,), (1396050248,), (1396050280,), (1396050719,), (1396050752,), (1396050781,), (1396050794,), (1396050797,), (1396051122,), (1396051159,), (1396051200,), (1396051631,), (1396051661,), (1396051706,), (1396051753,), (1396051780,), (1396051783,), (1396051875,), (1396051878,), (1396051881,), (1396051905,), (1396052294,), (1396052306,), (1396052308,), (1396052331,), (1396052379,), (1396052380,), (1396052382,), (1396052385,), (1396052407,), (1396052409,), (1396052417,), (1396052423,), (1396052548,), (1396052585,), (1396052622,), (1396052655,), (1396052688,), (1396052718,), (1396052870,), (1396052876,), (1396052878,), (1396052978,), (1396052979,), (1396052980,), (1396052987,), (1396053397,), (1396053432,), (1396053775,), (1396053784,), (1396053819,), (1396053845,), (1396053950,), (1396053952,), (1396053955,), (1396053986,), (1396054018,), (1396054022,), (1396054079,), (1396054081,), (1396054083,), (1396054087,), (1396054092,), (1396054096,), (1396054107,), (1396054108,), (1396054132,), (1396054119,), (1396054122,), (1396054127,), (1396054233,), (1396054236,), (1396054268,), (1396054281,), (1396054286,), (1396054325,), (1396054356,), (1396054357,), (1396054358,), (1396054360,), (1396054399,), (1396054400,), (1396054402,), (1396054405,), (1396054408,), (1396054432,), (1396054434,), (1396054540,), (1396054541,), (1396054542,), (1396054642,), (1396054663,), (1396054666,), (1396054675,), (1396054708,), (1396054724,), (1396054784,), (1396054785,), (1396054786,), (1396054788,), (1396054792,), (1396054828,), (1396054830,), (1396054832,), (1396054948,), (1396054966,), (1396054974,), (1396054999,), (1396055007,), (1396055015,), (1396055018,), (1396055046,), (1396055047,), (1396055049,), (1396055051,), (1396055054,), (1396055057,), (1396055099,), (1396055101,), (1396055103,), (1396055382,), (1396055383,), (1396055401,), (1396055404,), (1396055407,), (1396055423,), (1396055716,), (1396055649,), (1396055682,), (1396055766,), (1396055768,), (1396055770,), (1396055773,), (1396055776,), (1396055987,), (1396056011,), (1396056013,), (1396056042,), (1396056078,), (1396056226,), (1396056227,), (1396056228,), (1396056230,), (1396056257,), (1396056259,), (1396056260,), (1396056267,), (1396056281,), (1396056316,), (1396056524,), (1396056554,), (1396056558,), (1396056690,), (1396056693,), (1396056695,), (1396056698,), (1396056701,), (1396056704,), (1396056807,), (1396056818,), (1396056835,), (1396056837,), (1396056863,), (1396056870,), (1396056885,), (1396056886,), (1396056888,), (1396056891,), (1396056895,), (1396056930,), (1396056933,), (1396056936,), (1396057020,), (1396057044,), (1396057059,), (1396057071,), (1396057090,), (1396057108,), (1396057127,), (1396057132,), (1396057136,), (1396057153,), (1396057159,), (1396057164,), (1396057201,), (1396057203,), (1396057249,), (1396057256,), (1396057260,), (1396057264,), (1396057268,), (1396057271,), (1396057275,), (1396057277,), (1396057556,), (1396057454,), (1396057486,), (1396057522,), (1396057831,), (1396057865,), (1396057878,), (1396057883,), (1396057889,), (1396058204,), (1396058423,), (1396058425,), (1396058427,), (1396058430,), (1396058467,), (1396058468,), (1396058469,), (1396058471,), (1396058473,), (1396058499,), (1396058501,), (1396058503,), (1396058538,), (1396058539,), (1396058540,), (1396058541,), (1396058927,), (1396058932,), (1396058940,), (1396058972,), (1396058980,), (1396059067,), (1396059070,), (1396059113,), (1396059167,), (1396059188,), (1396059211,), (1396059331,), (1396059333,), (1396059335,), (1396059338,), (1396059467,), (1396059468,), (1396059470,), (1396059474,), (1396059478,), (1396059481,), (1396059493,), (1396059494,), (1396059518,), (1396059525,), (1396059532,), (1396059540,), (1396059544,), (1396059548,), (1396059551,), (1396059701,), (1396059702,), (1396059704,), (1396059706,), (1396060177,), (1396060135,), (1396060162,), (1396060164,), (1396060167,), (1396060173,), (1396060375,), (1396060414,), (1396060451,), (1396060512,), (1396060833,), (1396060835,), (1396060838,), (1396060869,), (1396060871,), (1396060872,), (1396060876,), (1396060889,), (1396060893,), (1396060990,), (1396060993,), (1396061023,), (1396061057,), (1396061091,), (1396061130,), (1396061258,), (1396061291,), (1396061298,), (1396061300,), (1396061310,), (1396061311,), (1396061320,), (1396061325,), (1396061355,), (1396061356,), (1396061357,), (1396061359,), (1396061361,), (1396061501,), (1396061506,), (1396061527,), (1396061537,), (1396061561,), (1396061577,), (1396061588,), (1396061590,), (1396061616,), (1396061643,), (1396061655,), (1396061687,), (1396061688,), (1396061693,), (1396061699,), (1396061710,), (1396061746,), (1396061871,), (1396061904,), (1396061942,), (1396061978,), (1396062015,), (1396062043,), (1396062187,), (1396062323,), (1396062328,), (1396062689,), (1396062759,), (1396062761,), (1396062764,), (1396062767,), (1396062834,), (1396062817,), (1396062818,), (1396062825,), (1396062830,), (1396062935,), (1396062941,), (1396062979,), (1396062984,), (1396063045,), (1396063046,), (1396063048,), (1396063055,), (1396063059,), (1396063080,), (1396063082,), (1396063084,), (1396063155,), (1396063156,), (1396063157,), (1396063158,), (1396063161,), (1396063171,), (1396063364,), (1396063391,), (1396063458,), (1396063502,), (1396063535,), (1396063573,), (1396063828,), (1396063860,), (1396063889,), (1396064086,), (1396064118,), (1396066000,), (1396066022,), (1396066063,), (1396066065,), (1396066066,), (1396066074,), (1396066079,), (1396066125,), (1396066126,), (1396066127,), (1396066166,), (1396066168,), (1396066171,), (1396066175,), (1396066198,), (1396066252,), (1396066705,), (1396066736,), (1396066766,), (1396067288,), (1396067290,), (1396067292,), (1396067294,), (1396067520,), (1396067530,), (1396067531,), (1396067703,), (1396067705,), (1396067707,), (1396067710,), (1396067714,), (1396067834,), (1396067871,), (1396067903,), (1396067933,), (1396068034,), (1396068040,), (1396068045,), (1396068076,), (1396068112,), (1396068146,), (1396068294,), (1396068329,), (1396068953,), (1396068471,), (1396068799,), (1396068847,), (1396068882,), (1396068915,), (1396069273,), (1396069304,), (1396069336,), (1396069626,), (1396069653,), (1396069680,), (1396069740,), (1396069804,), (1396069846,), (1396070021,), (1396070111,), (1396070112,), (1396070113,), (1396070115,), (1396070328,), (1396070332,), (1396070338,), (1396070363,), (1396070364,), (1396070365,), (1396070367,), (1396070442,), (1396070444,), (1396070446,), (1396070448,), (1396070451,), (1396070454,), (1396070476,), (1396070480,), (1396070482,), (1396070484,), (1396070519,), (1396070521,), (1396070523,), (1396070525,), (1396070642,), (1396070644,), (1396070646,), (1396070648,), (1396070651,), (1396070683,), (1396070685,), (1396070686,), (1396070688,), (1396070691,), (1396070836,), (1396070914,), (1396082785,), (1396081502,), (1396081529,), (1396082780,), (1396082851,), (1396082853,), (1396082880,), (1396082906,), (1396082910,), (1396082937,), (1396082931,), (1396082934,), (1396082957,), (1396082959,), (1396082982,), (1396083109,), (1396083110,), (1396083111,), (1396083134,), (1396083459,), (1396083462,), (1396083651,), (1396083707,), (1396083738,), (1396083850,), (1396083855,), (1396083856,), (1396083871,), (1396083881,), (1396083899,), (1396083901,), (1396083903,), (1396083906,), (1396083930,), (1396083933,), (1396083936,), (1396083940,), (1396083943,), (1396083946,), (1396083959,), (1396083961,), (1396083966,), (1396083969,), (1396083971,), (1396084002,), (1396084005,), (1396084008,), (1396084013,), (1396084036,), (1396084038,), (1396084039,), (1396084041,), (1396084043,), (1396084062,), (1396084064,), (1396084066,), (1396084069,), (1396084072,), (1396084102,), (1396084105,), (1396084108,), (1396084111,), (1396084114,), (1396084367,), (1396084405,), (1396084438,), (1396084471,), (1396084506,), (1396084541,), (1396084862,), (1396084853,), (1396084855,), (1396084857,), (1396084859,), (1396085077,), (1396085136,), (1396085193,), (1396085770,), (1396085801,), (1396085840,), (1396085875,), (1396085911,), (1396085944,), (1396086064,), (1396086097,), (1396086103,), (1396086111,), (1396086112,), (1396086113,), (1396086142,), (1396086357,), (1396086364,), (1396086366,), (1396086368,), (1396086373,), (1396086376,), (1396086412,), (1396086414,), (1396086416,), (1396086419,), (1396086423,), (1396086436,), (1396086438,), (1396086440,), (1396086442,), (1396086446,), (1396086450,), (1396086476,), (1396086478,), (1396086480,), (1396086482,), (1396086486,), (1396086500,), (1396086504,), (1396086505,), (1396086507,), (1396086509,), (1396086512,), (1396086541,), (1396086544,), (1396086546,), (1396086550,), (1396086554,), (1396086557,), (1396086564,), (1396086567,), (1396086571,), (1396086574,), (1396086578,), (1396086582,), (1396086593,), (1396086596,), (1396086598,), (1396086608,), (1396086612,), (1396086614,), (1396086617,), (1396086641,), (1396086644,), (1396086648,), (1396086652,), (1396086656,), (1396086660,), (1396086669,), (1396086671,), (1396086673,), (1396086675,), (1396086685,), (1396086687,), (1396086690,), (1396086693,), (1396086708,), (1396086710,), (1396086712,), (1396086713,), (1396086715,), (1396086777,), (1396086766,), (1396086767,), (1396086769,), (1396086774,), (1396086792,), (1396086795,), (1396086798,), (1396086806,), (1396086810,), (1396086838,), (1396086857,), (1396086861,), (1396086864,), (1396086873,), (1396086896,), (1396086897,), (1396086898,), (1396086899,), (1396086901,), (1396086902,), (1396086974,), (1396087010,), (1396087024,), (1396087026,), (1396087152,), (1396087155,), (1396087158,), (1396087161,), (1396087164,), (1396087167,), (1396087181,), (1396087183,), (1396087184,), (1396087185,), (1396087213,), (1396087214,), (1396087217,), (1396087221,), (1396087225,), (1396087228,), (1396087236,), (1396087237,), (1396087239,), (1396087240,), (1396087313,), (1396087349,), (1396087385,), (1396087419,), (1396087647,), (1396087680,), (1396087702,), (1396087707,), (1396087710,), (1396087846,), (1396087879,), (1396087885,), (1396087887,), (1396087897,), (1396087979,), (1396088011,), (1396088042,), (1396088074,), (1396088107,), (1396088306,), (1396088343,), (1396088378,), (1396088407,), (1396088572,), (1396088576,), (1396088577,), (1396088579,), (1396088581,), (1396088610,), (1396088613,), (1396088617,), (1396088620,), (1396088624,), (1396088627,), (1396088652,), (1396088647,), (1396088649,), (1396088650,), (1396088676,), (1396088679,), (1396088682,), (1396088685,), (1396088706,), (1396088709,), (1396088711,), (1396088714,), (1396088729,), (1396088733,), (1396088753,), (1396088756,), (1396088759,), (1396088763,), (1396088764,), (1396088766,), (1396088770,), (1396088773,), (1396088794,), (1396088798,), (1396088802,), (1396088807,), (1396088828,), (1396088830,), (1396088831,), (1396088832,), (1396088869,), (1396088870,), (1396088888,), (1396088895,), (1396088899,), (1396088902,), (1396088924,), (1396088984,), (1396089019,), (1396089021,), (1396089023,), (1396089026,), (1396089064,), (1396089130,), (1396089164,), (1396089166,), (1396089168,), (1396089189,), (1396089192,), (1396089196,), (1396089200,), (1396089205,), (1396089209,), (1396089288,), (1396089280,), (1396089284,), (1396089286,), (1396089318,), (1396089326,), (1396089327,), (1396089328,), (1396089329,), (1396089344,), (1396089345,), (1396089346,), (1396089348,), (1396089351,), (1396089365,), (1396089367,), (1396089369,), (1396089371,), (1396089374,), (1396089387,), (1396089389,), (1396089391,), (1396089392,), (1396089395,), (1396089414,), (1396089433,), (1396089434,), (1396089493,), (1396089497,), (1396089499,), (1396089502,), (1396089506,), (1396089508,), (1396089539,), (1396089541,), (1396089542,), (1396089546,), (1396089588,), (1396089598,), (1396089600,), (1396089603,), (1396089607,), (1396089610,), (1396089625,), (1396089628,), (1396089630,), (1396089633,), (1396089637,), (1396089668,), (1396089669,), (1396089676,), (1396089678,), (1396089700,), (1396089702,), (1396089725,), (1396089727,), (1396089728,), (1396089735,), (1396089738,), (1396089983,), (1396089987,), (1396089991,), (1396090015,), (1396090049,), (1396090139,), (1396090149,), (1396090152,), (1396090155,), (1396090158,), (1396090185,), (1396090166,), (1396090169,), (1396090173,), (1396090178,), (1396090182,), (1396090210,), (1396090213,), (1396090215,), (1396090218,), (1396090241,), (1396090243,), (1396090244,), (1396090247,), (1396090250,), (1396090252,), (1396090259,), (1396090262,), (1396090265,), (1396090268,), (1396090274,), (1396090275,), (1396090304,), (1396090340,), (1396090375,), (1396090687,), (1396090722,), (1396090755,), (1396090791,), (1396090829,), (1396090863,), (1396091038,), (1396091041,), (1396091044,), (1396091047,), (1396091299,), (1396091300,), (1396091319,), (1396091369,), (1396091420,), (1396091455,), (1396091807,), (1396091850,), (1396091882,), (1396091916,), (1396091956,), (1396091992,), (1396092095,), (1396092097,), (1396092099,), (1396092101,), (1396092398,), (1396092402,), (1396092433,), (1396092445,), (1396092454,), (1396092457,), (1396092488,), (1396092493,), (1396092494,), (1396092595,), (1396092615,), (1396092618,), (1396092622,), (1396092627,), (1396092631,), (1396092652,), (1396092659,), (1396092661,), (1396092665,), (1396092669,), (1396092673,), (1396092681,), (1396092683,), (1396092685,), (1396092692,), (1396092702,), (1396092714,), (1396092717,), (1396092721,), (1396093402,), (1396093458,), (1396093395,), (1396093443,), (1396093445,), (1396093448,), (1396093452,), (1396093456,), (1396093469,), (1396093471,), (1396093473,), (1396093476,), (1396093478,), (1396093490,), (1396093510,), (1396093512,), (1396093513,), (1396093515,), (1396093569,), (1396093570,), (1396093572,), (1396093575,), (1396093593,), (1396093595,), (1396093597,), (1396093600,), (1396093604,), (1396093608,), (1396093634,), (1396093635,), (1396093636,), (1396093638,), (1396093642,), (1396093661,), (1396093664,), (1396093668,), (1396093674,), (1396093679,), (1396093683,), (1396093731,), (1396093733,), (1396093738,), (1396093744,), (1396093748,), (1396093753,), (1396093763,), (1396093764,), (1396093765,), (1396093767,), (1396093769,), (1396093792,), (1396093773,), (1396093777,), (1396093781,), (1396093785,), (1396093789,), (1396093805,), (1396093806,), (1396093807,), (1396093809,), (1396093811,), (1396093843,), (1396093844,), (1396093847,), (1396093851,), (1396093855,), (1396093858,), (1396093874,), (1396093880,), (1396093881,), (1396093889,), (1396093890,), (1396093892,), (1396093896,), (1396093900,), (1396093915,), (1396093916,), (1396093919,), (1396093955,), (1396093956,), (1396094000,), (1396094003,), (1396094007,), (1396094011,), (1396094035,), (1396094037,), (1396094065,), (1396094067,), (1396094070,), (1396094074,), (1396094079,), (1396094084,), (1396094106,), (1396094109,), (1396094112,), (1396094116,), (1396094119,), (1396094122,), (1396094130,), (1396094132,), (1396094134,), (1396094136,), (1396094138,), (1396094142,), (1396094146,), (1396094171,), (1396094173,), (1396094175,), (1396094181,), (1396094191,), (1396094202,), (1396094247,), (1396094248,), (1396094251,), (1396094256,), (1396094260,), (1396094263,), (1396094278,), (1396094281,), (1396094282,), (1396094285,), (1396094287,), (1396094290,), (1396094294,), (1396094298,), (1396094300,), (1396094315,), (1396094316,), (1396094318,), (1396094320,), (1396094323,), (1396094357,), (1396094341,), (1396094342,), (1396094347,), (1396094349,), (1396094353,), (1396094375,), (1396094376,), (1396094377,), (1396094398,), (1396094400,), (1396094402,), (1396094405,), (1396094409,), (1396094413,), (1396094461,), (1396094463,), (1396094465,), (1396094469,), (1396094473,), (1396094477,), (1396094504,), (1396094507,), (1396094510,), (1396094514,), (1396094516,), (1396094518,), (1396094522,), (1396094523,), (1396094525,), (1396094527,), (1396094537,), (1396094543,), (1396094546,), (1396094549,), (1396094563,), (1396094564,), (1396094566,), (1396094568,), (1396094571,), (1396094586,), (1396094664,), (1396094666,), (1396094669,), (1396094673,), (1396094677,), (1396094680,), (1396094769,), (1396094801,), (1396094832,), (1396094850,), (1396094862,), (1396094895,), (1396094917,), (1396094921,), (1396094942,), (1396095022,), (1396095055,), (1396095061,), (1396095065,), (1396095069,), (1396095072,), (1396095089,), (1396095092,), (1396095095,), (1396095098,), (1396095122,), (1396095123,), (1396095124,), (1396095125,), (1396095148,), (1396095150,), (1396095152,), (1396095156,), (1396095207,), (1396095210,), (1396095214,), (1396095217,), (1396095221,), (1396095231,), (1396095233,), (1396095238,), (1396095277,), (1396095262,), (1396095269,), (1396095271,), (1396095273,), (1396095565,), (1396095598,), (1396095633,), (1396095665,), (1396096255,), (1396096256,), (1396096282,), (1396096313,), (1396096347,), (1396096368,), (1396096426,), (1396096427,), (1396096428,), (1396096432,), (1396096524,), (1396096556,), (1396096588,), (1396096625,), (1396096662,), (1396096820,), (1396096836,), (1396096869,), (1396096875,), (1396096899,), (1396096902,), (1396096935,), (1396096937,), (1396096939,), (1396096942,), (1396096964,), (1396096965,), (1396096966,), (1396096968,), (1396096971,), (1396096974,), (1396096989,), (1396096991,), (1396096993,), (1396096996,), (1396097081,), (1396097143,), (1396097204,), (1396097266,), (1396097329,), (1396097394,), (1396097889,), (1396097920,), (1396097956,), (1396098016,), (1396098079,), (1396098624,), (1396098659,), (1396098688,), (1396098723,), (1396098847,), (1396098849,), (1396098852,), (1396098856,), (1396098872,), (1396098970,), (1396099201,), (1396099220,), (1396099252,), (1396099257,), (1396099261,), (1396099285,), (1396099342,), (1396099344,), (1396099346,), (1396099349,), (1396099361,), (1396099373,), (1396099376,), (1396099379,), (1396099382,), (1396099383,), (1396099394,), (1396099395,), (1396099396,), (1396099398,), (1396099437,), (1396099418,), (1396099420,), (1396099424,), (1396099431,), (1396099435,), (1396099455,), (1396099461,), (1396099464,), (1396099484,), (1396099507,), (1396099509,), (1396099511,), (1396099515,), (1396099520,), (1396099551,), (1396099552,), (1396099554,), (1396099561,), (1396099572,), (1396099599,), (1396099602,), (1396099605,), (1396099609,), (1396099611,), (1396099613,), (1396099623,), (1396099624,), (1396099626,), (1396099628,), (1396099630,), (1396099632,), (1396099636,), (1396099640,), (1396099645,), (1396099648,), (1396099652,), (1396099659,), (1396099661,), (1396099731,), (1396099734,), (1396099739,), (1396099744,), (1396099749,), (1396099770,), (1396099772,), (1396099774,), (1396099777,), (1396099780,), (1396099784,), (1396099807,), (1396099809,), (1396099810,), (1396099812,), (1396099815,), (1396099838,), (1396099839,), (1396099841,), (1396099844,), (1396099855,), (1396099877,), (1396099880,), (1396099912,), (1396099921,), (1396099924,), (1396099945,), (1396099947,), (1396099985,), (1396099986,), (1396099988,), (1396099990,), (1396099994,), (1396100030,), (1396100018,), (1396100020,), (1396100023,), (1396100027,), (1396100046,), (1396100051,), (1396100058,), (1396100062,), (1396100077,), (1396100100,), (1396100101,), (1396100103,), (1396100107,), (1396100111,), (1396100117,), (1396100129,), (1396100130,), (1396100131,), (1396100132,), (1396100133,), (1396100137,), (1396100140,), (1396100144,), (1396100148,), (1396100161,), (1396100163,), (1396100170,), (1396100175,), (1396100180,), (1396100184,), (1396100204,), (1396100207,), (1396100211,), (1396100216,), (1396100231,), (1396100232,), (1396100233,), (1396100237,), (1396100253,), (1396100261,), (1396100300,), (1396100322,), (1396100334,), (1396100344,), (1396100353,), (1396100381,), (1396100382,), (1396100383,), (1396100385,), (1396100388,), (1396100391,), (1396100414,), (1396100415,), (1396100417,), (1396100419,), (1396100422,), (1396100425,), (1396100431,), (1396100432,), (1396100434,), (1396100436,), (1396100437,), (1396100438,), (1396100445,), (1396100448,), (1396100451,), (1396100454,), (1396100459,), (1396100476,), (1396100477,), (1396100479,), (1396100481,), (1396100484,), (1396100486,), (1396100507,), (1396100512,), (1396100514,), (1396100517,), (1396100520,), (1396100524,), (1396100534,), (1396100536,), (1396100537,), (1396100538,), (1396100546,), (1396100547,), (1396100550,), (1396100554,), (1396100558,), (1396100572,), (1396100573,), (1396100574,), (1396100576,), (1396100579,), (1396100624,), (1396100600,), (1396100603,), (1396100613,), (1396100616,), (1396100620,), (1396100653,), (1396100656,), (1396100659,), (1396100664,), (1396100680,), (1396100682,), (1396100684,), (1396100696,), (1396100708,), (1396100718,), (1396100736,), (1396100737,), (1396100738,), (1396100740,), (1396100859,), (1396100883,), (1396100889,), (1396100907,), (1396100909,), (1396100912,), (1396100934,), (1396100935,), (1396100936,), (1396100938,), (1396100945,), (1396100971,), (1396100973,), (1396100975,), (1396100978,), (1396100982,), (1396101002,), (1396101004,), (1396101007,), (1396101010,), (1396101013,), (1396101015,), (1396101020,), (1396101022,), (1396101023,), (1396101025,), (1396101027,), (1396101031,), (1396101035,), (1396101039,), (1396101042,), (1396101057,), (1396101059,), (1396101061,), (1396101064,), (1396101067,), (1396101070,), (1396101082,), (1396101083,), (1396101084,), (1396101086,), (1396101089,), (1396101106,), (1396101109,), (1396101111,), (1396101114,), (1396101299,), (1396101331,), (1396101362,), (1396101396,), (1396101430,), (1396101465,), (1396102003,), (1396102040,), (1396102057,), (1396102098,), (1396102150,), (1396102174,), (1396102175,), (1396102178,), (1396102376,), (1396102351,), (1396102368,), (1396102394,), (1396102396,), (1396102398,), (1396102403,), (1396102412,), (1396102419,), (1396102440,), (1396102443,), (1396102448,), (1396102452,), (1396102456,), (1396102459,), (1396102476,), (1396102477,), (1396102478,), (1396102481,), (1396102482,), (1396102487,), (1396102489,), (1396102491,), (1396102493,), (1396102495,), (1396102497,), (1396102514,), (1396102515,), (1396102541,), (1396102572,), (1396102589,), (1396102592,), (1396102677,), (1396102679,), (1396102681,), (1396102684,), (1396102697,), (1396102698,), (1396102700,), (1396102702,), (1396102705,), (1396102708,), (1396102739,), (1396102741,), (1396102743,), (1396102745,), (1396102757,), (1396102759,), (1396102761,), (1396102764,), (1396102774,), (1396102821,), (1396102846,), (1396102847,), (1396102848,), (1396102851,), (1396102853,), (1396102867,), (1396102869,), (1396102871,), (1396102874,), (1396102891,), (1396102897,), (1396102904,), (1396102914,), (1396102989,), (1396102991,), (1396102994,), (1396102998,), (1396103002,), (1396103004,), (1396103023,), (1396103024,), (1396103051,), (1396103199,), (1396103230,), (1396103240,), (1396103244,), (1396103248,), (1396103329,), (1396103331,), (1396103359,), (1396103397,), (1396103408,), (1396103416,), (1396103450,), (1396103443,), (1396103447,), (1396103448,), (1396103477,), (1396103479,), (1396103483,), (1396103490,), (1396103493,), (1396103510,), (1396103511,), (1396103512,), (1396103514,), (1396103518,), (1396103533,), (1396103535,), (1396103537,), (1396103540,), (1396103575,), (1396103615,), (1396103942,), (1396103973,), (1396104003,), (1396104033,), (1396104314,), (1396104315,), (1396104323,), (1396104364,), (1396104405,), (1396104441,), (1396104976,), (1396105030,), (1396105075,), (1396105322,), (1396105325,), (1396105329,), (1396105335,), (1396105338,), (1396105341,), (1396105377,), (1396105381,), (1396105383,), (1396105500,), (1396105531,), (1396105564,), (1396105597,), (1396105853,), (1396105878,), (1396105880,), (1396105882,), (1396105886,), (1396105890,), (1396106030,), (1396106064,), (1396106098,), (1396106129,), (1396106150,), (1396106151,), (1396106152,), (1396106154,), (1396106158,), (1396106161,), (1396106181,), (1396106183,), (1396106185,), (1396106188,), (1396106209,), (1396106212,), (1396106216,), (1396106221,), (1396106226,), (1396106230,), (1396106242,), (1396106248,), (1396106251,), (1396106255,), (1396106278,), (1396106286,), (1396106303,), (1396106304,), (1396106310,), (1396106311,), (1396106314,), (1396106315,), (1396106319,), (1396106320,), (1396106918,), (1396109030,), (1396109056,), (1396109107,), (1396109126,), (1396109138,), (1396109144,), (1396109187,), (1396109188,), (1396109189,), (1396109191,), (1396109212,), (1396109214,), (1396109216,), (1396109219,), (1396109242,), (1396109243,), (1396109244,), (1396109246,), (1396109266,), (1396109270,), (1396109296,), (1396109332,), (1396109372,), (1396109406,), (1396109735,), (1396109767,), (1396109797,), (1396109829,), (1396109899,), (1396109933,), (1396110049,), (1396110082,), (1396110121,), (1396110131,), (1396110212,), (1396110213,), (1396110214,), (1396110216,), (1396110219,), (1396110221,), (1396110299,), (1396110323,), (1396110327,), (1396110332,), (1396110350,), (1396110355,), (1396110367,), (1396110370,), (1396110374,), (1396110397,), (1396110400,), (1396110405,), (1396110410,), (1396110415,), (1396110420,), (1396110448,), (1396110449,), (1396110450,), (1396110458,), (1396110463,), (1396110467,), (1396110471,), (1396110475,), (1396110478,), (1396110486,), (1396110488,), (1396110489,), (1396110536,), (1396110521,), (1396110523,), (1396110525,), (1396110528,), (1396110533,), (1396110580,), (1396110581,), (1396110582,), (1396110684,), (1396110714,), (1396110752,), (1396110794,), (1396110833,), (1396111014,), (1396111015,), (1396111038,), (1396111297,), (1396111305,), (1396111313,), (1396111341,), (1396111506,), (1396111508,), (1396111553,), (1396111576,), (1396111600,), (1396111620,), (1396111660,), (1396111661,), (1396111747,), (1396111749,), (1396111751,), (1396111754,), (1396111757,), (1396111784,), (1396111785,), (1396111786,), (1396111788,), (1396111813,), (1396111814,), (1396111816,), (1396111820,), (1396111824,), (1396111850,), (1396111867,), (1396111869,), (1396111871,), (1396111873,), (1396111982,), (1396111969,), (1396111971,), (1396111974,), (1396111978,), (1396112002,), (1396112005,), (1396112020,), (1396112025,), (1396112118,), (1396112119,), (1396112120,), (1396112122,), (1396112145,), (1396112147,), (1396112149,), (1396112152,), (1396112156,), (1396112176,), (1396112177,), (1396112178,), (1396112180,), (1396112184,), (1396112188,), (1396112216,), (1396112218,), (1396112220,), (1396112222,), (1396112249,), (1396112251,), (1396112252,), (1396112254,), (1396112257,), (1396112278,), (1396112280,), (1396112282,), (1396112285,), (1396112288,), (1396112292,), (1396112340,), (1396112342,), (1396112344,), (1396112347,), (1396112371,), (1396112373,), (1396112374,), (1396112376,), (1396112379,), (1396112385,), (1396112434,), (1396112435,), (1396112437,), (1396112440,), (1396112444,), (1396112470,), (1396112472,), (1396112474,), (1396112477,), (1396112481,), (1396112500,), (1396112503,), (1396112508,), (1396112513,), (1396112517,), (1396112522,), (1396112530,), (1396112531,), (1396112532,), (1396112542,), (1396112557,), (1396112562,), (1396112566,), (1396112569,), (1396112575,), (1396112577,), (1396112580,), (1396112583,), (1396112587,), (1396112638,), (1396112626,), (1396112628,), (1396112629,), (1396112631,), (1396112634,), (1396112684,), (1396112686,), (1396112688,), (1396112711,), (1396112712,), (1396112713,), (1396112718,), (1396112726,), (1396112746,), (1396112748,), (1396112751,), (1396112755,), (1396112775,), (1396112777,), (1396112779,), (1396112782,), (1396112784,), (1396112830,), (1396112831,), (1396112832,), (1396112834,), (1396112836,), (1396112840,), (1396112863,), (1396112865,), (1396112867,), (1396112870,), (1396112873,), (1396112902,), (1396112904,), (1396112907,), (1396112912,), (1396112916,), (1396112919,), (1396112924,), (1396112926,), (1396112928,), (1396112935,), (1396112942,), (1396112946,), (1396112952,), (1396112956,), (1396112960,), (1396112964,), (1396112976,), (1396112978,), (1396112981,), (1396112984,), (1396112989,), (1396112993,), (1396113013,), (1396113014,), (1396113015,), (1396113017,), (1396113050,), (1396113053,), (1396113055,), (1396113057,), (1396113060,), (1396113064,), (1396113080,), (1396113081,), (1396113082,), (1396113083,), (1396113085,), (1396113127,), (1396113131,), (1396113135,), (1396113139,), (1396113143,), (1396113148,), (1396113468,), (1396114014,), (1396113307,), (1396113343,), (1396113377,), (1396113413,), (1396113782,), (1396113784,), (1396113787,), (1396113791,), (1396113821,), (1396113857,), (1396113954,), (1396113959,), (1396113986,), (1396113988,), (1396114021,), (1396114023,), (1396114026,), (1396114031,), (1396114222,), (1396114259,), (1396114293,), (1396114326,), (1396114365,), (1396114401,), (1396114578,), (1396114585,), (1396114611,), (1396114648,), (1396114685,), (1396114718,), (1396114846,), (1396114847,), (1396114849,), (1396114852,), (1396114993,), (1396114998,), (1396115027,), (1396115060,), (1396115097,), (1396115457,), (1396115487,), (1396115519,), (1396115553,), (1396115591,), (1396115629,), (1396115784,), (1396115816,), (1396115847,), (1396115854,), (1396115912,), (1396115915,), (1396115917,), (1396115920,), (1396115923,), (1396115926,), (1396116195,), (1396116227,), (1396116262,), (1396116296,), (1396116331,), (1396116684,), (1396116716,), (1396116743,), (1396116749,), (1396116945,), (1396116947,), (1396116950,), (1396116954,), (1396116958,), (1396116961,), (1396116969,), (1396116970,), (1396116971,), (1396116982,), (1396116984,), (1396117006,), (1396117008,), (1396117011,), (1396117014,), (1396117018,), (1396117023,), (1396117064,), (1396117048,), (1396117055,), (1396117057,), (1396117060,), (1396117082,), (1396117083,), (1396117084,), (1396117086,), (1396117090,), (1396117094,), (1396117126,), (1396117134,), (1396117136,), (1396117139,), (1396117143,), (1396117147,), (1396117170,), (1396117171,), (1396117173,), (1396117177,), (1396117180,), (1396117184,), (1396117217,), (1396117221,), (1396117226,), (1396117230,), (1396117234,), (1396117238,), (1396117244,), (1396117246,), (1396117248,), (1396117249,), (1396117250,), (1396117251,), (1396117261,), (1396117263,), (1396117267,), (1396117272,), (1396117277,), (1396117279,), (1396117304,), (1396117306,), (1396117307,), (1396117310,), (1396117312,), (1396117316,), (1396117333,), (1396117334,), (1396117337,), (1396117341,), (1396117345,), (1396117348,), (1396117357,), (1396117358,), (1396117360,), (1396117373,), (1396117380,), (1396117382,), (1396117387,), (1396117399,), (1396117403,), (1396117415,), (1396117416,), (1396117418,), (1396117421,), (1396117443,), (1396117445,), (1396117447,), (1396117450,), (1396117454,), (1396117472,), (1396117474,), (1396117477,), (1396117481,), (1396117486,), (1396117517,), (1396117523,), (1396117527,), (1396117532,), (1396117543,), (1396117545,), (1396117547,), (1396117550,), (1396117554,), (1396117558,), (1396117579,), (1396117581,), (1396117585,), (1396117589,), (1396117593,), (1396117596,), (1396117616,), (1396117620,), (1396117624,), (1396117627,), (1396117632,), (1396117654,), (1396117727,), (1396117614,), (1396117673,), (1396117674,), (1396117675,), (1396117677,), (1396117681,), (1396117684,), (1396117696,), (1396117713,), (1396117720,), (1396117726,), (1396117741,), (1396117742,), (1396117745,), (1396117749,), (1396117765,), (1396117767,), (1396117769,), (1396117772,), (1396117776,), (1396117780,), (1396117791,), (1396117792,), (1396117794,), (1396117797,), (1396117827,), (1396117829,), (1396117830,), (1396117832,), (1396117835,), (1396117837,), (1396117854,), (1396117876,), (1396117887,), (1396117893,), (1396117897,), (1396117907,), (1396117910,), (1396117914,), (1396117920,), (1396117929,), (1396117965,), (1396117966,), (1396117967,), (1396117969,), (1396117973,), (1396117977,), (1396118012,), (1396118019,), (1396118020,), (1396118074,), (1396118076,), (1396118078,), (1396118080,), (1396118083,), (1396118086,), (1396118128,), (1396118129,), (1396118132,), (1396118136,), (1396118140,), (1396118143,), (1396118152,), (1396118154,), (1396118156,), (1396118161,), (1396118171,), (1396118175,), (1396118185,), (1396118190,), (1396118193,), (1396118195,), (1396118208,), (1396118209,), (1396118211,), (1396118213,), (1396118215,), (1396118254,), (1396118250,), (1396118252,), (1396118279,), (1396118285,), (1396118288,), (1396118290,), (1396118293,), (1396118296,), (1396118313,), (1396118314,), (1396118315,), (1396118317,), (1396118345,), (1396118347,), (1396118356,), (1396118388,), (1396118419,), (1396118703,), (1396118705,), (1396118706,), (1396118735,), (1396118771,), (1396118788,), (1396118897,), (1396118901,), (1396118903,), (1396118944,), (1396118958,), (1396118961,), (1396118967,), (1396118977,), (1396118994,), (1396118995,), (1396118998,), (1396119001,), (1396119005,), (1396119008,), (1396119023,), (1396119025,), (1396119030,), (1396119035,), (1396119066,), (1396119067,), (1396119069,), (1396119072,), (1396119075,), (1396119078,), (1396119105,), (1396119106,), (1396119107,), (1396119109,), (1396119143,), (1396119144,), (1396119146,), (1396119149,), (1396119153,), (1396119155,), (1396119193,), (1396119227,), (1396119259,), (1396119291,), (1396119776,), (1396119811,), (1396119849,), (1396119888,), (1396119924,), (1396119958,), (1396120223,), (1396120154,), (1396120188,), (1396120205,), (1396120208,), (1396120295,), (1396120300,), (1396120303,), (1396120307,), (1396120312,), (1396120317,), (1396120380,), (1396120391,), (1396120394,), (1396120397,), (1396120400,), (1396120401,), (1396120423,), (1396120425,), (1396120428,), (1396120431,), (1396120480,), (1396120514,), (1396120543,), (1396120580,), (1396120619,), (1396120978,), (1396121012,), (1396121046,), (1396121247,), (1396121327,), (1396121353,), (1396121405,), (1396121406,), (1396121407,), (1396121411,), (1396121425,), (1396121493,), (1396121495,), (1396121502,), (1396121506,), (1396121513,), (1396121525,), (1396121541,), (1396121542,), (1396121543,), (1396121545,), (1396121595,), (1396121603,), (1396121605,), (1396121608,), (1396121612,), (1396121616,), (1396121631,), (1396121633,), (1396121634,), (1396121636,), (1396121640,), (1396121656,), (1396121657,), (1396121666,), (1396121681,), (1396121728,), (1396121730,), (1396121734,), (1396121738,), (1396121742,), (1396121746,), (1396121763,), (1396121767,), (1396121768,), (1396121772,), (1396121776,), (1396121777,), (1396121779,), (1396121782,), (1396121785,), (1396121803,), (1396121808,), (1396121811,), (1396121816,), (1396121821,), (1396121826,), (1396121841,), (1396121831,), (1396121832,), (1396121834,), (1396121836,), (1396121879,), (1396121881,), (1396121883,), (1396121886,), (1396121890,), (1396121899,), (1396121901,), (1396121903,), (1396121906,), (1396121910,), (1396121914,), (1396122057,), (1396122088,), (1396122122,), (1396122156,), (1396122530,), (1396122532,), (1396122534,), (1396122537,), (1396122541,), (1396122545,), (1396122714,), (1396122745,), (1396122779,), (1396122811,), (1396122955,), (1396122960,), (1396122976,), (1396122979,), (1396122981,), (1396123025,), (1396123026,), (1396123028,), (1396123032,), (1396123036,), (1396123039,), (1396123050,), (1396123051,), (1396123052,), (1396123053,), (1396123064,), (1396123066,), (1396123071,), (1396123075,), (1396123091,), (1396123098,), (1396123104,), (1396123109,), (1396123114,), (1396123119,), (1396123134,), (1396123136,), (1396123138,), (1396123172,), (1396123173,), (1396123174,), (1396123176,), (1396123178,), (1396123221,), (1396123223,), (1396123248,), (1396123249,), (1396123250,), (1396123307,), (1396123327,), (1396123329,), (1396123331,), (1396123334,), (1396123461,), (1396123491,), (1396123522,), (1396123555,), (1396123588,), (1396123620,), (1396123750,), (1396123768,), (1396123770,), (1396123774,), (1396123777,), (1396123787,), (1396123822,), (1396123858,), (1396123889,), (1396124015,), (1396124043,), (1396124056,), (1396124059,), (1396124063,), (1396124084,), (1396124154,), (1396124155,), (1396124156,), (1396124158,), (1396124209,), (1396124213,), (1396124221,), (1396124223,), (1396124226,), (1396124274,), (1396124275,), (1396124277,), (1396124280,), (1396124284,), (1396124287,), (1396124302,), (1396124303,), (1396124304,), (1396124306,), (1396124310,), (1396124329,), (1396124331,), (1396124333,), (1396124335,), (1396124338,), (1396124342,), (1396124365,), (1396124369,), (1396124377,), (1396124415,), (1396124484,), (1396124486,), (1396124562,), (1396124565,), (1396125932,), (1396125653,), (1396125930,), (1396125975,), (1396126486,), (1396126488,), (1396126524,), (1396126560,), (1396126710,), (1396126711,), (1396126712,), (1396126714,), (1396126716,), (1396126720,), (1396126873,), (1396127146,), (1396127171,), (1396127172,), (1396127174,), (1396127178,), (1396127181,), (1396127198,), (1396127199,), (1396127202,), (1396127206,), (1396127210,), (1396127213,), (1396127224,), (1396127226,), (1396127228,), (1396127229,), (1396127232,), (1396127234,), (1396127240,), (1396127257,), (1396127262,), (1396127274,), (1396127313,), (1396127314,), (1396127315,), (1396127317,), (1396127373,), (1396127337,), (1396127338,), (1396127340,), (1396127361,), (1396127369,), (1396127391,), (1396127421,), (1396127464,), (1396127520,), (1396127562,), (1396127575,), (1396127704,), (1396127735,), (1396127742,), (1396127799,), (1396127801,), (1396127803,), (1396127806,), (1396127862,), (1396127863,), (1396127864,), (1396127866,), (1396127877,), (1396127891,), (1396127893,), (1396127895,), (1396127927,), (1396127929,), (1396127930,), (1396127932,), (1396127935,), (1396128127,), (1396128129,), (1396128132,), (1396128135,), (1396128138,), (1396128141,), (1396128155,), (1396128156,), (1396128171,), (1396128175,), (1396128177,), (1396128182,), (1396128186,), (1396128190,), (1396128199,), (1396128201,), (1396128203,), (1396128207,), (1396128242,), (1396128275,), (1396128290,), (1396128292,), (1396128293,), (1396128296,), (1396128300,), (1396128315,), (1396128316,), (1396128317,), (1396128356,), (1396128358,), (1396128360,), (1396128362,), (1396128366,), (1396128462,), (1396128465,), (1396128469,), (1396128473,), (1396128478,), (1396128482,), (1396128491,), (1396128494,), (1396128498,), (1396128503,), (1396128507,), (1396128518,), (1396128554,), (1396128558,), (1396128560,), (1396128574,), (1396128568,), (1396128572,), (1396128586,), (1396128609,), (1396128638,), (1396128654,), (1396128657,), (1396128751,), (1396128753,), (1396128756,), (1396128759,), (1396128761,), (1396128764,), (1396128773,), (1396128776,), (1396128778,), (1396128779,), (1396128786,), (1396128792,), (1396128800,), (1396128817,), (1396128819,), (1396128820,), (1396128822,), (1396128825,), (1396128846,), (1396128847,), (1396128848,), (1396128850,), (1396128861,), (1396128867,), (1396128886,), (1396128888,), (1396128891,), (1396128894,), (1396128940,), (1396128949,), (1396128956,), (1396128958,), (1396128960,), (1396128975,), (1396128977,), (1396128978,), (1396129003,), (1396129005,), (1396129007,), (1396129040,), (1396129074,), (1396129307,), (1396129309,), (1396129312,), (1396129316,), (1396129320,), (1396129324,), (1396129347,), (1396129349,), (1396129354,), (1396129359,), (1396129393,), (1396129394,), (1396129396,), (1396129400,), (1396129404,), (1396129407,), (1396129525,), (1396129557,), (1396129569,), (1396129570,), (1396129571,), (1396129573,), (1396129577,), (1396129580,), (1396129583,), (1396129593,), (1396129595,), (1396129596,), (1396129599,), (1396129601,), (1396129655,), (1396129617,), (1396129619,), (1396129624,), (1396129635,), (1396129646,), (1396129675,), (1396129687,), (1396129688,), (1396129690,), (1396129764,), (1396129765,), (1396129767,), (1396129770,), (1396129773,), (1396129777,), (1396129790,), (1396129795,), (1396129800,), (1396129805,), (1396129825,), (1396129827,), (1396129830,), (1396129836,), (1396129841,), (1396129844,), (1396129880,), (1396129881,), (1396129882,), (1396129897,), (1396129901,), (1396129904,), (1396129924,), (1396129926,), (1396129928,), (1396129945,), (1396129946,), (1396129948,), (1396129952,), (1396129956,), (1396129959,), (1396129969,), (1396129970,), (1396129973,), (1396130001,), (1396130003,), (1396130006,), (1396130010,), (1396130025,), (1396130027,), (1396130030,), (1396130034,), (1396130038,), (1396130040,), (1396130062,), (1396130063,), (1396130065,), (1396130069,), (1396130087,), (1396130089,), (1396130093,), (1396130096,), (1396130100,), (1396130108,), (1396130109,), (1396130110,), (1396130112,), (1396130115,), (1396130118,), (1396130128,), (1396130133,), (1396130138,), (1396130143,), (1396130546,), (1396130476,), (1396130514,), (1396131189,), (1396131223,), (1396131254,), (1396131286,), (1396131319,), (1396131355,), (1396131915,), (1396131929,), (1396131930,), (1396131932,), (1396131935,), (1396131938,), (1396131956,), (1396131978,), (1396132008,), (1396132039,), (1396132070,), (1396132153,), (1396132156,), (1396132212,), (1396132228,), (1396132233,), (1396132236,), (1396132250,), (1396132253,), (1396132256,), (1396132259,), (1396132262,), (1396132264,), (1396132267,), (1396132268,), (1396132270,), (1396132272,), (1396132274,), (1396132282,), (1396132284,), (1396132286,), (1396132302,), (1396132311,), (1396132313,), (1396132315,), (1396132318,), (1396132321,), (1396132346,), (1396132348,), (1396132350,), (1396132353,), (1396132357,), (1396132377,), (1396132378,), (1396132379,), (1396132381,), (1396132384,), (1396132387,), (1396132410,), (1396132411,), (1396132418,), (1396132427,), (1396132438,), (1396132441,), (1396132454,), (1396132455,), (1396133103,), (1396133104,), (1396133105,), (1396133111,), (1396133117,), (1396133120,), (1396133220,), (1396133254,), (1396133287,), (1396133318,), (1396133350,), (1396133382,), (1396133523,), (1396133516,), (1396133518,), (1396133519,), (1396133521,), (1396133865,), (1396133897,), (1396133956,), (1396133989,), (1396134023,), (1396134285,), (1396134287,), (1396134288,), (1396134290,), (1396134294,), (1396134531,), (1396134534,), (1396134536,), (1396134567,), (1396134975,), (1396135009,), (1396135044,), (1396135080,), (1396135119,), (1396135165,), (1396135353,), (1396135356,), (1396135359,), (1396135363,), (1396135365,), (1396135563,), (1396135596,), (1396135627,), (1396135691,), (1396136284,), (1396136319,), (1396136352,), (1396136388,), (1396136423,), (1396136456,), (1396136518,), (1396136519,), (1396136520,), (1396136532,), (1396136534,), (1396136537,), (1396136549,), (1396136558,), (1396136589,), (1396136828,), (1396136853,), (1396136876,), (1396137015,), (1396137017,), (1396137019,), (1396137022,), (1396137024,), (1396137044,), (1396137045,), (1396137046,), (1396137048,), (1396137051,), (1396137055,), (1396137101,), (1396137110,), (1396137113,), (1396137116,), (1396137130,), (1396137142,), (1396137145,), (1396137150,), (1396137159,), (1396137163,), (1396137165,), (1396137177,), (1396137179,), (1396137182,), (1396137186,), (1396137190,), (1396137194,), (1396137212,), (1396137214,), (1396137215,), (1396137237,), (1396137217,), (1396137220,), (1396137225,), (1396137230,), (1396137234,), (1396137242,), (1396137243,), (1396137244,), (1396137246,), (1396137248,), (1396137265,), (1396137275,), (1396137306,), (1396137336,), (1396137370,), (1396137405,), (1396137545,), (1396137576,), (1396137609,), (1396137641,), (1396137672,), (1396137704,), (1396137707,), (1396137709,), (1396137714,), (1396137748,), (1396137780,), (1396137873,), (1396137884,), (1396137885,), (1396137917,), (1396138198,), (1396138200,), (1396138212,), (1396138245,), (1396138273,), (1396138403,), (1396138405,), (1396138406,), (1396138413,), (1396138435,), (1396138437,), (1396138439,), (1396138442,), (1396138446,), (1396138449,), (1396138489,), (1396138490,), (1396138491,), (1396138493,), (1396138497,), (1396138499,), (1396138804,), (1396138841,), (1396138880,), (1396138914,), (1396139169,), (1396139174,), (1396139184,), (1396139210,), (1396139242,), (1396139297,), (1396139355,), (1396139357,), (1396139359,), (1396139362,), (1396139364,), (1396139367,), (1396139373,), (1396139375,), (1396139376,), (1396139377,), (1396139392,), (1396139394,), (1396139397,), (1396139401,), (1396139405,), (1396139413,), (1396139415,), (1396139419,), (1396139426,), (1396139467,), (1396139463,), (1396139464,), (1396139465,), (1396139490,), (1396139491,), (1396139493,), (1396139513,), (1396139515,), (1396139517,), (1396139520,), (1396139524,), (1396139543,), (1396139545,), (1396139547,), (1396139550,), (1396139554,), (1396139557,), (1396139730,), (1396139763,), (1396139793,), (1396140193,), (1396140252,), (1396140254,), (1396140257,), (1396140259,), (1396140261,), (1396140430,), (1396140475,), (1396140533,), (1396140574,), (1396140605,), (1396140665,), (1396141055,), (1396141086,), (1396141115,), (1396141119,), (1396141122,), (1396141125,), (1396141165,), (1396141196,), (1396141226,), (1396141256,), (1396141267,), (1396141290,), (1396141321,), (1396141346,), (1396141353,), (1396141376,), (1396141411,), (1396141415,), (1396141417,), (1396141420,), (1396141538,), (1396141568,), (1396141598,), (1396141632,), (1396142018,), (1396142052,), (1396142086,), (1396142118,), (1396142153,), (1396142190,), (1396142311,), (1396142348,), (1396142384,), (1396142421,), (1396142437,), (1396143539,), (1396143575,), (1396143585,), (1396143866,), (1396143862,), (1396144023,), (1396144025,), (1396144029,), (1396144040,), (1396144049,), (1396144085,), (1396144088,), (1396144090,), (1396144092,), (1396144094,), (1396144097,), (1396144107,), (1396144118,), (1396144119,), (1396144123,), (1396144124,), (1396144127,), (1396144134,), (1396144155,), (1396144156,), (1396144157,), (1396144175,), (1396144192,), (1396144235,), (1396144268,), (1396144302,), (1396144689,), (1396144716,), (1396144743,), (1396144770,), (1396144799,), (1396144833,), (1396145238,), (1396145313,), (1396145371,), (1396145527,), (1396145559,), (1396145592,), (1396145626,), (1396145750,), (1396145869,), (1396145872,), (1396145875,), (1396145904,), (1396146004,), (1396146036,), (1396146067,), (1396146111,), (1396146142,), (1396146216,), (1396146221,), (1396146271,), (1396146272,), (1396146274,), (1396146276,), (1396146279,), (1396146282,), (1396146285,), (1396146286,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25112025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28896031]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] map_info['map_portfolio_photo'] : {28896031: [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271, 1396146221, 1396146216, 1396146142, 1396146111, 1396146067, 1396146036, 1396146004, 1396145904, 1396145875, 1396145872, 1396145869, 1396145750, 1396145626, 1396145592, 1396145559, 1396145527, 1396145371, 1396145313, 1396145238, 1396144833, 1396144799, 1396144770, 1396144743, 1396144716, 1396144689, 1396144302, 1396144268, 1396144235, 1396144192, 1396144175, 1396144157, 1396144156, 1396144155, 1396144134, 1396144127, 1396144124, 1396144123, 1396144119, 1396144118, 1396144107, 1396144097, 1396144094, 1396144092, 1396144090, 1396144088, 1396144085, 1396144049, 1396144040, 1396144029, 1396144025, 1396144023, 1396143862]} final : True mtd_id 4302 list_pids : [1396146286, 1396146285, 1396146282, 1396146279, 1396146276, 1396146274, 1396146272, 1396146271] Looping around the photos to save general results len do output : 1 /28896031Didn'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, '4115984') ('4302', '28896031', '1396146286', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984') ('4302', None, None, None, None, None, None, None, '4115984') ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28896031', 'None', None, None, None, None, '4115984'), ('4302', '28896031', '1396146286', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146285', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146282', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146279', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146276', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146274', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146272', None, None, None, None, None, '4115984'), ('4302', '28896031', '1396146271', None, None, None, None, None, '4115984')] time used for this insertion : 0.0186765193939209 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.825031280517578 time spend to save output : 0.01887798309326172 total time spend for step 5 : 5.84390926361084 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 (4115984) 2.20user 2.50system 0:15.27elapsed 30%CPU (0avgtext+0avgdata 159080maxresident)k 56inputs+11608outputs (0major+74907minor)pagefaults 0swaps